From bd14c2572a36e90c4da02052fadc5ab86440416f Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Wed, 15 Feb 2023 19:04:12 +0100 Subject: [PATCH] net-dns/awl: move from net-misc Signed-off-by: Sam Therapy --- net-dns/awl/Manifest | 1 + net-dns/awl/awl-9999.ebuild | 49 +++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 net-dns/awl/Manifest create mode 100644 net-dns/awl/awl-9999.ebuild diff --git a/net-dns/awl/Manifest b/net-dns/awl/Manifest new file mode 100644 index 0000000..84b887f --- /dev/null +++ b/net-dns/awl/Manifest @@ -0,0 +1 @@ +EBUILD awl-9999.ebuild 1038 BLAKE2B 8592fe8cd69850e79bf0c81f78e0af94b89288533506d308071e20a60b8fadbeaa7b413e3277d2392add0ac4a28c83356971a7f08a875d14838f0e0069e3cfb4 SHA512 e395e0b138afcaa2a45384936ea53b3366dd34e2ee2645120cd7f37ac9ee5a0dd814862b4e5f8ae335a3d965d43fecf2331f558f971b901977f65dac3b95568c diff --git a/net-dns/awl/awl-9999.ebuild b/net-dns/awl/awl-9999.ebuild new file mode 100644 index 0000000..daeeb0e --- /dev/null +++ b/net-dns/awl/awl-9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit git-r3 go-module + +DESCRIPTION="command-line DNS client" +HOMEPAGE="https://git.froth.zone/sam/awl" + +EGIT_REPO_URI="https://git.froth.zone/sam/awl.git" + +RESTRICT="network-sandbox strip" +LICENSE="BSD" +SLOT="0" +IUSE="gccgo" +BDEPEND="app-text/scdoc" + +src_configure() { + GOFLAGS+=" -ldflags=-s -ldflags=-w -ldflags=-X=main.version=${PV}-gentoo" +} + +src_unpack() { + git-r3_src_unpack + go-module_live_vendor +} + +src_compile() { + if ! use gccgo; then + emake PREFIX="${EPREFIX}/usr" + else + #-buildmode=pie is not supported by gccgo + export GOFLAGS="-buildvcs=false -modcacherw -v -x" + ego build -compiler gccgo ${GOFLAGS} . + scdoc doc/awl.1 || die + fi + +} + +src_test() { + #-buildmode=pie clashes with -race + export GOFLAGS="-buildvcs=false -modcacherw -v -x" + emake test +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install + einstalldocs +}