net-misc/sshs: simplify ebuild

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-02-15 19:03:37 +01:00
parent 53401f56dc
commit 85abbdcf68
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
4 changed files with 5 additions and 57 deletions

View file

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

View file

@ -1,50 +0,0 @@
# 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
}

View file

@ -1 +1 @@
EBUILD sshs-9999.ebuild 569 BLAKE2B 5680bcf6a2f006815847cad3b9152b2769d52057bdb3b01d510e73e67875b9b52d95bbcbbb21e208e94d40ac4ad24c56e4300188576d068d890ae13d274229aa SHA512 9eebb6f993ac5704bad8d26c0ac37462d9b6350ce9e828c3dc33279afdcd8dffed641c724d4fa4763625e4a8195da71389b2b1590b8c764e35ae29a5ca804cb5
EBUILD sshs-9999.ebuild 551 BLAKE2B e4e4407c1645d1a68a80726a49aa7711031e282a4907f51e60aa6f0551d63daec5ca7ea0d45d24752604e0792bd6ecfa5da41b6b7fd5a32d206f155fff18344b SHA512 3fd0d84bdc3faacdb231d4d2e0dec678304c2dc7f7c16541ee6d53cc3f706dbaf3bfbc002bfda89bc41ff82159d1cff4356016fd652833a2620940322987df40

View file

@ -1,7 +1,7 @@
# Copyright 2020-2021 Gentoo Authors
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit git-r3 go-module
@ -17,15 +17,14 @@ IUSE=""
KEYWORDS="~amd64 ~arm64 ~x86"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
go build -o ./${PN} -ldflags="-w -s -X cmd.Version=$(git-r3_peek_remote_ref)" .
emake PREFIX="${EPREFIX}/usr"
}
src_install() {
dobin ./${PN}
emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
}