Add awl :)

This commit is contained in:
Sam Therapy 2023-02-15 18:30:40 +01:00
parent af9c3865e4
commit 53401f56dc
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 51 additions and 0 deletions

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

@ -0,0 +1 @@
EBUILD awl-9999.ebuild 944 BLAKE2B 479f2f80d2ccff4cf50bbe8b7ecb1708b6567515d7d565e0b8be98eca2c654ac32706d9ca7e2ee5dfc1a82f5aa2a2450e4439378db9431a189f3bdebb62ac800 SHA512 799940dfa8dc73e64df09efac6444ba7a761b431b1b1646168f87645fcd9d20d644c463c82f225d9d623561ba8461efb17e8c7220c1a4027ebd66ece468e8b61

View file

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