summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2015-08-10 15:28:26 -0500
committerWilliam Hubbs <williamh@gentoo.org>2015-08-10 15:30:24 -0500
commitb3a50d35e9fa908c4b74467abedd99f93c65dbdf (patch)
treecb2c217b37acf471dda58aad5c4ce25441238440 /dev-go
parentdev-go/go-net: remove old snapshot (diff)
downloadgentoo-b3a50d35e9fa908c4b74467abedd99f93c65dbdf.tar.gz
gentoo-b3a50d35e9fa908c4b74467abedd99f93c65dbdf.tar.bz2
gentoo-b3a50d35e9fa908c4b74467abedd99f93c65dbdf.zip
dev-go/go-tools: remove old snapshot
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-tools/Manifest1
-rw-r--r--dev-go/go-tools/go-tools-0_pre20150606.ebuild99
2 files changed, 0 insertions, 100 deletions
diff --git a/dev-go/go-tools/Manifest b/dev-go/go-tools/Manifest
index d3a088537a6..986ab7823cc 100644
--- a/dev-go/go-tools/Manifest
+++ b/dev-go/go-tools/Manifest
@@ -1,3 +1,2 @@
DIST go-favicon.ico 1150 SHA256 d76ca702a6d81e20ddd31c8c5a4368130e7c68d990600316f6f1c9509bd38ba7 SHA512 194c4b3c360321a10f714b6755d9155de6129682b4070d19b52d0d5706fcbd1d244ea38c33fd77fe1dec85b3e39720dd0a62f5b126803036fbc8337a9d72fea6 WHIRLPOOL f55a84a28812bffd1fa38e098e6ba7d757bdefc0e20c3d8ef767fb1bc7d6e2cfbb8d1ae0593e81cce17c27f60e6aacf094e6c67b1f592c0546090feab9d3830f
-DIST go-tools-0_pre20150606.tar.gz 1625903 SHA256 d121fc152648283413bc0596a55edc229796a7640d2ba6e1fd31c4fc316bb32c SHA512 68904e9799f80c77b1ccda2483eea4dcb19825aaf94355f967d1b0c3547ebf85772c0e92d9b5ba2e492a8af1b4cd07037d121add3c42760d15ca41c05d1161ab WHIRLPOOL 2e5e51112b4ddf2f391c8131e0b84e4c73ddcfcedc46ee934700b45c9cac5c2ee6a4984c02fa80c2207bd39d6b903a68c72cddec0fabcdd14ec2c6a4c7c7f727
DIST go-tools-0_pre20150805.tar.gz 1633388 SHA256 80db6fc563df50eb924dbf4f96cef287fc6b89cc8b98595c1dac3c80a118f290 SHA512 80813c2da74c7b25fa2cfd15b2505757e7f466469ac701cb22d190dc83a607f091c4dea207a2e371e53d7a1f5459e7b53e5eea53c95565e958a6eb7fcb212359 WHIRLPOOL 3b000f830d81c35e6f76a9883d9430eb7fe0f546a36579a150a7bd8f825146a0623726a98a7b7f764825c9fee30af1f89b3bbc98efeaf05fe8f64bbb127a1f68
diff --git a/dev-go/go-tools/go-tools-0_pre20150606.ebuild b/dev-go/go-tools/go-tools-0_pre20150606.ebuild
deleted file mode 100644
index 41cb121bba9..00000000000
--- a/dev-go/go-tools/go-tools-0_pre20150606.ebuild
+++ /dev/null
@@ -1,99 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-KEYWORDS="~amd64"
-DESCRIPTION="Go Tools"
-MY_PN=${PN##*-}
-GO_PN=golang.org/x/${MY_PN}
-HOMEPAGE="https://godoc.org/${GO_PN}"
-EGIT_COMMIT="ac303766f5f240c1796eeea3dc9bf34f1261aa35"
-SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
- http://golang.org/favicon.ico -> go-favicon.ico"
-LICENSE="BSD"
-SLOT="0"
-IUSE=""
-DEPEND=">=dev-lang/go-1.4
- dev-go/go-net"
-RDEPEND=""
-S="${WORKDIR}/src/${GO_PN}"
-EGIT_CHECKOUT_DIR="${S}"
-STRIP_MASK="*.a"
-
-src_unpack() {
- default
- mkdir -p src/${GO_PN%/*} || die
- mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die
- cp "${DISTDIR}"/go-favicon.ico "${S}"/godoc/static/favicon.ico || die
-}
-
-src_prepare() {
- # disable broken tests
- sed -e 's:TestWeb(:_\0:' -i cmd/godoc/godoc_test.go || die
- sed -e 's:TestVet(:_\0:' -i cmd/vet/vet_test.go || die
- sed -e 's:TestImport(:_\0:' -i go/gcimporter/gcimporter_test.go || die
- sed -e 's:TestImportStdLib(:_\0:' -i go/importer/import_test.go || die
- sed -e 's:TestStdlib(:_\0:' -i go/loader/stdlib_test.go || die
- sed -e 's:TestStdlib(:_\0:' -i go/ssa/stdlib_test.go || die
- sed -e 's:TestGorootTest(:_\0:' \
- -e 's:TestFoo(:_\0:' \
- -e 's:TestTestmainPackage(:_\0:' \
- -i go/ssa/interp/interp_test.go || die
- sed -e 's:TestBar(:_\0:' \
- -e 's:TestFoo(:_\0:' -i go/ssa/interp/testdata/a_test.go || die
- sed -e 's:TestCheck(:_\0:' -i go/types/check_test.go || die
- sed -e 's:TestStdlib(:_\0:' \
- -e 's:TestStdFixed(:_\0:' \
- -e 's:TestStdKen(:_\0:' -i go/types/stdlib_test.go || die
- sed -e 's:TestRepoRootForImportPath(:_\0:' -i go/vcs/vcs_test.go || die
- sed -e 's:TestStdlib(:_\0:' -i refactor/lexical/lexical_test.go || die
-
- # Add favicon to the godoc web interface (bug 551030)
- sed -e 's:"example.html",:\0\n\t"favicon.ico",:' -i godoc/static/makestatic.go || die
- sed -e 's:<link type="text/css":<link rel="icon" type="image/png" href="/lib/godoc/favicon.ico">\n\0:' -i \
- godoc/static/godoc.html || die
-}
-
-src_compile() {
- # Create a writable GOROOT in order to avoid sandbox violations.
- GOROOT="${WORKDIR}/goroot"
- cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
- rm -rf "${GOROOT}/src/${GO_PN}" \
- "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die
-
- # Generate static.go with favicon included
- pushd godoc/static >/dev/null
- GOROOT="${GOROOT}" GOPATH=${WORKDIR} go run makestatic.go || die
- popd >/dev/null
-
- GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
-}
-
-src_test() {
- GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
- go test -x -v ${GO_PN}/... || die $?
-}
-
-src_install() {
- local x
- exeinto /usr/lib/go/bin
- doexe "${WORKDIR}"/bin/*
-
- # godoc ends up in ${GOROOT}/bin
- dodir /usr/bin
- while read -r -d '' x; do
- doexe "${x}"
- ln "${ED}"usr/{lib/go/bin,bin}/${x##*/} || die
- done < <(find "${GOROOT}/bin" -type f -print0)
-
- # cover and vet end up in ${GOROOT}/pkg/tool/linux_amd64
- exeinto /usr/lib/go/pkg/tool/linux_amd64
- find "${GOROOT}/pkg/tool/linux_amd64" -type f -exec doexe {} \;
-
- insinto /usr/lib/go
- find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
- insopts -m0644 -p # preserve timestamps for bug 551486
- doins -r "${WORKDIR}"/{pkg,src}
-}