net-dns/awl: move from net-misc

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-15 19:04:12 +01:00
parent 85abbdcf68
commit bd14c2572a
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 50 additions and 0 deletions

1
net-dns/awl/Manifest Normal file
View file

@ -0,0 +1 @@
EBUILD awl-9999.ebuild 1038 BLAKE2B 8592fe8cd69850e79bf0c81f78e0af94b89288533506d308071e20a60b8fadbeaa7b413e3277d2392add0ac4a28c83356971a7f08a875d14838f0e0069e3cfb4 SHA512 e395e0b138afcaa2a45384936ea53b3366dd34e2ee2645120cd7f37ac9ee5a0dd814862b4e5f8ae335a3d965d43fecf2331f558f971b901977f65dac3b95568c

View file

@ -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.scd >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
}