dev-go/go-tools: fix live ebuild for go-1.5 and newer

In Go 1.5, cover and vet have moved back to the main Go repository, so
the ones in this package are deprecated.
This commit is contained in:
William Hubbs
2015-08-23 18:35:04 -05:00
parent 2c24ca3867
commit 7cea8530ad
+9 -4
View File
@@ -83,8 +83,13 @@ src_install() {
GOROOT="${T}/goroot" golang-build_src_install
dobin bin/* "${T}/goroot/bin/godoc"
exeinto "$(go env GOTOOLDIR)"
exeopts -m0755 -p # preserve timestamps for bug 551486
doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env GOARCH)/cover"
doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env GOARCH)/vet"
if has_version '<dev-lang/go-1.5'; then
exeinto "$(go env GOTOOLDIR)"
exeopts -m0755 -p # preserve timestamps for bug 551486
doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env GOARCH)/cover"
doexe "${T}/goroot/pkg/tool/$(go env GOOS)_$(go env GOARCH)/vet"
else
rm "${D}"/usr/bin/{cover,vet} ||
die "unable to remove cover and vet"
fi
}