mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user