portage/net-dns/awl/awl-0.6.8.ebuild
Sam Therapy b420df7ac0
net-dns/awl: Bump package version
0.6.6 is still here because it's the last version that explicitly
supports gccgo
Iff gccgo ever implements generics, this might change.
2023-05-18 15:05:04 +02:00

41 lines
1,017 B
Bash

# 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"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86"
BDEPEND="app-text/scdoc"
# Gitea and only Gitea puts their tarballs in weird places
S="${WORKDIR}/awl"
src_configure() {
GOFLAGS+=" -ldflags=-s -ldflags=-w -ldflags=-X=main.version=${PV}"
}
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
einstalldocs
}