diff --git a/net-misc/awl/Manifest b/net-misc/awl/Manifest new file mode 100644 index 0000000..32e2bfb --- /dev/null +++ b/net-misc/awl/Manifest @@ -0,0 +1 @@ +EBUILD awl-9999.ebuild 944 BLAKE2B 479f2f80d2ccff4cf50bbe8b7ecb1708b6567515d7d565e0b8be98eca2c654ac32706d9ca7e2ee5dfc1a82f5aa2a2450e4439378db9431a189f3bdebb62ac800 SHA512 799940dfa8dc73e64df09efac6444ba7a761b431b1b1646168f87645fcd9d20d644c463c82f225d9d623561ba8461efb17e8c7220c1a4027ebd66ece468e8b61 diff --git a/net-misc/awl/awl-9999.ebuild b/net-misc/awl/awl-9999.ebuild new file mode 100644 index 0000000..9bf11dc --- /dev/null +++ b/net-misc/awl/awl-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +KEYWORDS="~amd64 ~arm64 ~x86" +BDEPEND=" + app-text/scdoc +" + +src_unpack() { + default + git-r3_src_unpack + go-module_live_vendor +} + +src_compile() { + if ! use gccgo; then + ego build ${GOFLAGS} . + else + #-buildmode=pie is not supported by gccgo + export GOFLAGS="-buildvcs=false -modcacherw -v -x" + ego build -compiler gccgo ${GOFLAGS} . + fi + + scdoc doc/awl.1 || die +} + +src_test() { + #-buildmode=pie clashes with -race + export GOFLAGS="-buildvcs=false -modcacherw -v -x" + make test +} + +src_install() { + dobin awl + doman doc/awl.1 + einstalldocs +}