dev-go/go-tools: revbump to 0_pre20150823-r1, fixing file collisions for bug 558818
authorZac Medico <zmedico@gentoo.org>
Wed, 26 Aug 2015 17:46:15 +0000 (10:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 26 Aug 2015 17:46:34 +0000 (10:46 -0700)
Package-Manager: portage-2.2.20.1

dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild [moved from dev-go/go-tools/go-tools-0_pre20150823.ebuild with 93% similarity]

similarity index 93%
rename from dev-go/go-tools/go-tools-0_pre20150823.ebuild
rename to dev-go/go-tools/go-tools-0_pre20150823-r1.ebuild
index ac8982ed2b2ee09d8e7155deae4568835b0578f0..887effab69f0e3cb62adfa5f7a0f0a5f6a1470eb 100644 (file)
@@ -81,7 +81,12 @@ src_install() {
        cp -sR "$(go env GOROOT)" "${T}/goroot" || die
 
        GOROOT="${T}/goroot" golang-build_src_install
-       dobin bin/* "${T}/goroot/bin/godoc"
+
+       # bug 558818: install binaries in $GOROOT/bin to avoid file collisions
+       exeinto "$(go env GOROOT)/bin"
+       doexe bin/* "${T}/goroot/bin/godoc"
+       dodir /usr/bin
+       ln "${ED}$(go env GOROOT)/bin/godoc" "${ED}usr/bin/godoc" || die
 
        if has_version '<dev-lang/go-1.5'; then
                exeinto "$(go env GOTOOLDIR)"