summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-02-20 13:03:17 -0800
committerZac Medico <zmedico@gentoo.org>2016-02-20 13:03:43 -0800
commitad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d (patch)
tree1646a8d8cc651521b265adf792504e60294cbe85 /dev-go
parentdev-java/fontbox: Remove old (diff)
downloadgentoo-ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d.tar.gz
gentoo-ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d.tar.bz2
gentoo-ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d.zip
dev-go/go-text: version bump to 0_pre20160211
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-go')
-rw-r--r--dev-go/go-text/Manifest1
-rw-r--r--dev-go/go-text/go-text-0_pre20160211.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-go/go-text/Manifest b/dev-go/go-text/Manifest
index 522235cf6e3f..e3623f1fab6f 100644
--- a/dev-go/go-text/Manifest
+++ b/dev-go/go-text/Manifest
@@ -1 +1,2 @@
DIST go-text-0_pre20150806.tar.gz 3736536 SHA256 377d3a95ffb01cf301e1b6050b1437f576f6bbfe32b6d97afc343bb0570b141f SHA512 dd0fc8b5abdfa6f005316bb7828c03a081485e0bd33cbf86c0b83f8bf9240973a7b0a2e6f52ef75f48ec00fc922be21a6c65ff9eb4080f28cb3f280bd4c4f5c6 WHIRLPOOL 79b6233c99984b98b5e74915029117e1f920e17789033ce2656d1590fbeafd4c69d145adeff7c57b1c7f8836397466461744959557877d27fc831da97a62b6ff
+DIST go-text-0_pre20160211.tar.gz 4015547 SHA256 a134ac828ec5cfda4fa8306077dd945f8717d2189f019c24d0d104cc5e6159ec SHA512 066e53f6e094a6cf3effe1a9376f7bde41c3059099381bb5adf8c84589de4dab9115ce3c8cb7f89f90e2601422f79e3906f8f498d66e364da9f830ede1f7f05f WHIRLPOOL 1952326c7b47e1adf270e74be9817cbc2a2e1c1e4a69426378d515c73264f961bb249ced3363c56a57eba1dbab64151ca86a35a77bc26c7cf33fb71b5aff95a6
diff --git a/dev-go/go-text/go-text-0_pre20160211.ebuild b/dev-go/go-text/go-text-0_pre20160211.ebuild
new file mode 100644
index 000000000000..151ca4b91e45
--- /dev/null
+++ b/dev-go/go-text/go-text-0_pre20160211.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGO_PN=golang.org/x/text/...
+EGO_SRC=golang.org/x/text
+
+if [[ ${PV} = *9999* ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64"
+ EGIT_COMMIT="07b9a78963006a15c538ec5175243979025fa7a8"
+ SRC_URI="https://github.com/golang/text/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ inherit golang-vcs-snapshot
+fi
+inherit golang-build
+
+DESCRIPTION="Go text processing support"
+HOMEPAGE="https://godoc.org/golang.org/x/text"
+LICENSE="BSD"
+SLOT="0/${PVR}"
+IUSE=""
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ # Create a writable GOROOT in order to avoid sandbox violations.
+ cp -sR "$(go env GOROOT)" "${T}/goroot" || die
+ rm -rf "${T}/goroot/src/${EGO_SRC}" || die
+ rm -rf "${T}/goroot/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_SRC}" || die
+ export GOROOT="${T}/goroot"
+ golang-build_src_compile
+}
+
+src_install() {
+ golang-build_src_install
+ export -n GOROOT
+ exeopts -m0755 -p # preserve timestamps for bug 551486
+ exeinto "$(go env GOROOT)/bin"
+ doexe bin/*
+}
+
+src_test() {
+ # omit $(get_golibdir_gopath) from GOPATH:
+ #package golang.org/x/text/display (test)
+ # imports golang.org/x/text/internal/testtext: use of internal package not allowed
+ #FAIL golang.org/x/text/display [setup failed]
+ GOPATH="${WORKDIR}/${P}" go test -v -work -x "${EGO_PN}" || die
+}