dev-go/go-tools: fix godoc doexe failure, bug 591656

Package-Manager: portage-2.3.0
This commit is contained in:
Zac Medico
2016-08-19 09:12:54 -07:00
parent 1aa0ef91ef
commit ea9127983a
@@ -95,7 +95,10 @@ src_install() {
# bug 558818: install binaries in $GOROOT/bin to avoid file collisions
exeinto "$(go env GOROOT)/bin"
doexe bin/* "${T}/goroot/bin/godoc"
doexe bin/*
# godoc location varies depending on whether or not it's
# installed on the system (bug 591656)
[[ -e bin/godoc ]] || doexe "${T}/goroot/bin/godoc"
dodir /usr/bin
ln "${ED}$(go env GOROOT)/bin/godoc" "${ED}usr/bin/godoc" || die