From 97af51d9a9291f1486881e64f4172f6d3e7cbacd Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Thu, 16 Feb 2023 19:50:33 +0100 Subject: [PATCH] net-dns/awl: add stable release Signed-off-by: Sam Therapy --- net-dns/awl/Manifest | 5 +++- net-dns/awl/awl-0.6.2.ebuild | 48 ++++++++++++++++++++++++++++++++++++ net-dns/awl/awl-9999.ebuild | 26 +++++++++---------- 3 files changed, 63 insertions(+), 16 deletions(-) create mode 100644 net-dns/awl/awl-0.6.2.ebuild diff --git a/net-dns/awl/Manifest b/net-dns/awl/Manifest index c75f230..61b6033 100644 --- a/net-dns/awl/Manifest +++ b/net-dns/awl/Manifest @@ -1 +1,4 @@ -EBUILD awl-9999.ebuild 1090 BLAKE2B 60450b106be2360f70c64070b0ed80407742115b85894df5b14218ef0fd413fffef909d0e35c1f038e6de7ea2f2fdc64c6fe5b9b91858646f2cba0249dd41699 SHA512 5c9c61b64d77e499c473187e64761730865b8cfa04deb16719c6c7f57c90dd2532358c5ee9b67d813392b6948286358412ae1b0e43e17ca99dd8403a8d39a630 +DIST awl-0.6.2-deps.tar.xz 1531108 BLAKE2B 80bdc67fd7580e9fa4cfc2e5c0cd87563376510b5d23ebc287b9fa038b794b73f5e94a8a37778354d1d213bff94ff14a9d10948957b64c24373df2a027eacf92 SHA512 70b29e701b5d3c1bfdaed064596cb72adba03f6af79b927d9ce797401cf5e7dc3af3f811d47595fb57a27352b501a8267a9efc1c2c20b540d45ce6b50027b43d +DIST awl-0.6.2.tar.gz 47993 BLAKE2B e328839ed70027222c716514e86be9e141a3cfd28029cbf8db94a856dbedda05570b7a8303ca2a19a7b304b72e081cd5ebe48cad23fa2220cb2008d6f944b22e SHA512 4d8b243335e08020ae5bd9b7d1306d04c6ecd54d205102fe2189f066e2f3f1d21bb39a38cf9eba269ae4e352fec6cdf521e78678b6095d5b4daa885fef729bf0 +EBUILD awl-0.6.2.ebuild 1254 BLAKE2B f8f4edd5d2478ec034ca8b2c25516c043857d9772383e4fe74effb25f50403c6bac5db3ed629c6fbca4f3a1720c0a1d04ac14ca01da96cac20ab4e0fae2268d3 SHA512 87d5ca0bfa1aea5420ec099edeaa88fdf177b02a782801e8b2f9bdad2773957ba3b5e55a40bd4fe4fbb504b00907bfbd94f51103ea3e49d5bdcfc4df437cdca1 +EBUILD awl-9999.ebuild 1021 BLAKE2B f2d073bc4f18fec5465dd12be3fb79065051dc58741b604aa01db1126464c446822f01e988b7926ce5073273d755bda4bea4ded46c80aadc5e1a86b229d79d62 SHA512 496409611385f2d04b7e4053db0ee60fc3e55edfd4587862a86244015b582baf5c72cfaa3e115ab33cc924701ed6f187608fc11e2877a30dd58def3cd9d7809a diff --git a/net-dns/awl/awl-0.6.2.ebuild b/net-dns/awl/awl-0.6.2.ebuild new file mode 100644 index 0000000..3ecbd78 --- /dev/null +++ b/net-dns/awl/awl-0.6.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="command-line DNS query client" +HOMEPAGE="https://git.froth.zone/sam/awl" + +SRC_URI="https://git.froth.zone/sam/awl/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://git.froth.zone/sam/awl/releases/download/v${PV}/${P}-deps.tar.xz" + +# test requires network for making DNS queries +RESTRICT="strip test" +LICENSE="BSD MIT Unlicense CC0-1.0" +SLOT="0" +IUSE="gccgo" +KEYWORDS="~amd64 ~arm64 ~x86" +BDEPEND="app-text/scdoc" + +# Gitea and only Gitea puts their tarballs in weird places +S="${WORKDIR}/awl" + +src_configure() { + if use gccgo; then + # -buildmode=pie is not supported by gccgo + GOFLAGS="-buildvcs=false -modcacherw -v -x -compiler=gccgo" + else + GOFLAGS+=" -ldflags=-s -ldflags=-w -ldflags=-X=main.version=${PV}" + fi +} + +src_compile() { + emake PREFIX="${EPREFIX}/usr" +} + +src_test() { + #-buildmode=pie clashes with -race + emake test GOFLAGS="-buildvcs=false -modcacherw -v -x" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install + # manpage gets compressed by default, delete it + rm ${ED}/usr/share/man/man1/awl.1.gz || die + einstalldocs +} diff --git a/net-dns/awl/awl-9999.ebuild b/net-dns/awl/awl-9999.ebuild index 6d77652..864682f 100644 --- a/net-dns/awl/awl-9999.ebuild +++ b/net-dns/awl/awl-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 inherit git-r3 go-module -DESCRIPTION="command-line DNS client" +DESCRIPTION="command-line DNS query client" HOMEPAGE="https://git.froth.zone/sam/awl" EGIT_REPO_URI="https://git.froth.zone/sam/awl.git" @@ -17,34 +17,30 @@ IUSE="gccgo" KEYWORDS="~amd64 ~arm64 ~x86" 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" +src_configure() { + if use gccgo; then + # -buildmode=pie is not supported by gccgo + GOFLAGS="-buildvcs=false -modcacherw -v -x -compiler=gccgo" 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 + GOFLAGS+=" -ldflags=-s -ldflags=-w -ldflags=-X=main.version=$(git-r3_peek_remote_ref)-gentoo" fi +} +src_compile() { + emake PREFIX="${EPREFIX}/usr" } src_test() { #-buildmode=pie clashes with -race - export GOFLAGS="-buildvcs=false -modcacherw -v -x" - emake test + emake test GOFLAGS="-buildvcs=false -modcacherw -v -x" } src_install() { emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install - einstalldocs + einstalldocs }