dev-go/go-tools: fix tipgodoc

Package-Manager: portage-2.2.27
This commit is contained in:
Zac Medico
2016-01-29 15:14:30 -08:00
parent dd3656cd98
commit 92c2722eb3

View File

@@ -99,15 +99,6 @@ src_install() {
# bug 558818: install binaries in $GOROOT/bin to avoid file collisions
exeinto "$(go env GOROOT)/bin"
doexe bin/* "${T}/goroot/bin/godoc"
# Since tipgodoc has been known to be installed in either
# GOROOT or GOPATH, handle either case (bug 572650). It likely
# depends on what is currently installed, as is often the case
# for weird issues like this with go.
if [[ -e ${T}/gopath/bin/tipgodoc ]]; then
doexe "${T}/gopath/bin/tipgodoc"
else
doexe "${T}/goroot/bin/tipgodoc"
fi
dodir /usr/bin
ln "${ED}$(go env GOROOT)/bin/godoc" "${ED}usr/bin/godoc" || die