summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-07-15 00:12:12 -0700
committerZac Medico <zmedico@gentoo.org>2021-07-15 00:12:12 -0700
commitcf829d50a6868b44de782d1e56b22a70ea8a4243 (patch)
tree6061f7005e51b53e21b6a32047bd3eb5390000cf /dev-go
parentdev-java/gwt: gwt-2.8.2 removal (diff)
downloadgentoo-cf829d50a6868b44de782d1e56b22a70ea8a4243.tar.gz
gentoo-cf829d50a6868b44de782d1e56b22a70ea8a4243.tar.bz2
gentoo-cf829d50a6868b44de782d1e56b22a70ea8a4243.zip
dev-go/go-tools: Fix double EPREFIX
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-tools/go-tools-0.1.4.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-go/go-tools/go-tools-0.1.4.ebuild b/dev-go/go-tools/go-tools-0.1.4.ebuild
index 2807b22e10a6..36df26227c47 100644
--- a/dev-go/go-tools/go-tools-0.1.4.ebuild
+++ b/dev-go/go-tools/go-tools-0.1.4.ebuild
@@ -180,8 +180,10 @@ src_test() {
src_install() {
# bug 558818: install binaries in $GOROOT/bin to avoid file collisions
- exeinto "$(go env GOROOT)/bin"
+ local goroot=$(go env GOROOT)
+ goroot=${goroot#${EPREFIX}}
+ exeinto "${goroot}/bin"
doexe bin/*
dodir /usr/bin
- ln "${ED}/$(go env GOROOT)/bin/godoc" "${ED}/usr/bin/godoc" || die
+ ln "${ED}/${goroot}/bin/godoc" "${ED}/usr/bin/godoc" || die
}