diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-08-18 17:55:47 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-08-18 23:37:54 -0700 |
commit | 996d1958338701c58df2eefaf9f25e49258b5d5b (patch) | |
tree | 6dc1f5b099122e014e5f21290266521e8169e3dc /dev-go | |
parent | sys-devel/binutils-2.30-r2: ppc64 stable, bug 655574 (diff) | |
download | gentoo-996d1958338701c58df2eefaf9f25e49258b5d5b.tar.gz gentoo-996d1958338701c58df2eefaf9f25e49258b5d5b.tar.bz2 gentoo-996d1958338701c58df2eefaf9f25e49258b5d5b.zip |
dev-go/go-tools: version bump to 0_pre20180817
Package-Manager: Portage-2.3.47, Repoman-2.3.10
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/go-tools/Manifest | 2 | ||||
-rw-r--r-- | dev-go/go-tools/go-tools-0_pre20180817.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-go/go-tools/Manifest b/dev-go/go-tools/Manifest index e3a4b4fb3ef7..f9fbac28648b 100644 --- a/dev-go/go-tools/Manifest +++ b/dev-go/go-tools/Manifest @@ -1,5 +1,7 @@ +DIST github.com-golang-net-aaf60122140d3fcf75376d319f0554393160eb50.tar.gz 965206 BLAKE2B 018ab877bfa7208bb0ca9b4ede85077ed37c8ee3c7065569646e6c9704715d6810b0286276ea0fa9a271f12ffbe964b41f55ec762711c8a43ccea564607f3265 SHA512 d56f5608e64e8d883a782f0c460f08da20e7d01a97330fad35c8757420ac82fb84b657c3f64e3c4d90a08cc4d8905ab37225d6fab8472e8f1fd3d7be212df8b9 DIST go-favicon.ico 1150 BLAKE2B 7cef9e0c7031531ceaddc56b9e7cb8c09cf3ebf08bbdd53876edcf48d412c55968268190b1fe1814e21efc5669618a5e07d30d7bdbb73b4cbeca9a31b3185fc5 SHA512 194c4b3c360321a10f714b6755d9155de6129682b4070d19b52d0d5706fcbd1d244ea38c33fd77fe1dec85b3e39720dd0a62f5b126803036fbc8337a9d72fea6 DIST go-tools-0_pre20150823.tar.gz 1633447 BLAKE2B 00866c14139099821fc883ab3908b47481a3ea5af323977fdd84622f43e8998a6fcf6c0a4cbf0c6bb98494d1f4b1fdd0d281447b67a0766af1e5b4f68cf24e27 SHA512 6d906bae8433182e7a105a46b92c4f64ac145196ccc72f8934376fc49e5d554182931745e92229c4571323a6eba9ce2f680b5add3844ecb593a194cbbc1b0b63 DIST go-tools-0_pre20150902.tar.gz 1630401 BLAKE2B 5f23e4d05c614584bfd2ac77d15ad4b464f083b489b1a687a823d014d848ce38ac5006a379eb46f37e7aba0419b7f1b4d48c053aae89c6ac912366e5ddc487c3 SHA512 437d5178ce5bf6c4d39ad638259e7c18150d2574dffb632003fa0b83a61a9103e666e562aecc6e8412d995e4b5ffacda6bc12b1cfbbea0b22a5ff680a0a7e3e1 DIST go-tools-0_pre20160121.tar.gz 1768660 BLAKE2B ebc7622967dbb82c6578591c108bba8c96cb7df56360d445b02de1da905ac64b4901057acd36e3d2ab5ec51e5e2ff206efae6a9f9523180e53434adcdad278e3 SHA512 ca4b213a6f398f9bb61a81784fb6dcb4a82994e2d7a95134fc5203ce0f65848d192b2d7c8975a59199db873942c23562866a5607347e060ac0af370d72e067e2 DIST go-tools-0_pre20160220.tar.gz 1827046 BLAKE2B 26b4080540958764c42fffc1cb6a1597705c0a7ea85357b5169f9a0bf6939d7c5475681f6fede8b46a88ef58c72afa9eaa9da3fb66a3bbbb19942d0a1887bbeb SHA512 95c9deb9b01b2f294818fcc847e457ab313d5831a839bf9cfeb1a00a0efd833de3fdfd3ecfe7ecfa2dd236ffcf963e73205d7b5b25fa41ab51c7601dc632bce1 +DIST go-tools-0_pre20180817.tar.gz 2321169 BLAKE2B d1ba93b36b62bfbf53770cab6c96019d1a96db0ff6521f591577d866f74a1f65ec24e41a06f81d0040be7122f2e0da734e68d0a72591040265b5f95b324645fe SHA512 1af6c4a58f4d1985dc55e4342d9a4f26ada646ffe87fafdb5bdf876ad972a9f826da257ff9a10956c24dbc90ed9d6935bb78b4f7d30f9e50493c60f7ce92edb1 diff --git a/dev-go/go-tools/go-tools-0_pre20180817.ebuild b/dev-go/go-tools/go-tools-0_pre20180817.ebuild new file mode 100644 index 000000000000..f4effc4ab2dd --- /dev/null +++ b/dev-go/go-tools/go-tools-0_pre20180817.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN="golang.org/x/tools" + +# vendor the net package due to a circular dependency +EGO_VENDOR=( "golang.org/x/net aaf60122140d3fcf75376d319f0554393160eb50 github.com/golang/net" ) + +EGIT_COMMIT="7d1dc997617fb662918b6ea95efc19faa87e1cf8" +ARCHIVE_URI="https://github.com/golang/tools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~arm ~x86" +inherit golang-build golang-vcs-snapshot + +DESCRIPTION="Go Tools" +HOMEPAGE="https://godoc.org/golang.org/x/tools" +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI} + http://golang.org/favicon.ico -> go-favicon.ico" +LICENSE="BSD" +SLOT="0/${PVR}" + +src_prepare() { + default + # Add favicon to the godoc web interface (bug 551030) + cp "${DISTDIR}"/go-favicon.ico "src/${EGO_PN}/godoc/static/favicon.ico" || + die + sed -e 's:"example.html",:\0\n\t"favicon.ico",:' \ + -i src/${EGO_PN}/godoc/static/gen.go || die + sed -e 's:<link type="text/css":<link rel="icon" type="image/png" href="/lib/godoc/favicon.ico">\n\0:' \ + -i src/${EGO_PN}/godoc/static/godoc.html || die + sed -e 's:TestVeryLongFile(:_\0:' \ + -i src/${EGO_PN}/go/internal/gcimporter/bexport_test.go || die + sed -e 's:TestLoadSyntaxOK(:_\0:' \ + -i src/${EGO_PN}/go/packages/packages_test.go || die + sed -e 's:TestCgoOption(:_\0:' \ + -i src/${EGO_PN}/go/loader/stdlib_test.go || die + sed -e 's:TestWebIndex(:_\0:' \ + -e 's:TestTypeAnalysis(:_\0:' \ + -i src/${EGO_PN}/cmd/godoc/godoc_test.go || die + sed -e 's:TestImportStdLib(:_\0:' \ + -i src/${EGO_PN}/go/internal/gcimporter/gcimporter_test.go || die + sed -e 's:TestVeryLongFile(:_\0:' \ + -i src/${EGO_PN}/go/internal/gcimporter/bexport_test.go || die +} + +src_compile() { + # Generate static.go with favicon included + pushd src/golang.org/x/tools/godoc/static >/dev/null || die + GOPATH="${S}:$(get_golibdir_gopath)" \ + go run makestatic.go || die + popd >/dev/null + + GOPATH="${S}:$(get_golibdir_gopath)" \ + go install -v -work -x ${EGO_BUILD_FLAGS} $(cd "${S}/src/${EGO_PN}" && GOPATH="${S}" go list ./...) || die +} + +src_test() { + GOPATH="${S}:$(get_golibdir_gopath)" \ + go test -v -work -x "${EGO_PN}/..." || die +} + +src_install() { + rm -rf "${S}/src/${EGO_PN}/vendor" || die + golang_install_pkgs + + # bug 558818: install binaries in $GOROOT/bin to avoid file collisions + exeinto "$(go env GOROOT)/bin" + doexe bin/* + dodir /usr/bin + ln "${ED}$(go env GOROOT)/bin/godoc" "${ED}usr/bin/godoc" || die +} |