Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/go-text/
Date: Sat, 20 Feb 2016 21:04:13
Message-Id: 1456002223.ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d.zmedico@gentoo
1 commit: ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 20 21:03:17 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 20 21:03:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad3a39ca
7
8 dev-go/go-text: version bump to 0_pre20160211
9
10 Package-Manager: portage-2.2.27
11
12 dev-go/go-text/Manifest | 1 +
13 dev-go/go-text/go-text-0_pre20160211.ebuild | 51 +++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-go/go-text/Manifest b/dev-go/go-text/Manifest
17 index 522235c..e3623f1 100644
18 --- a/dev-go/go-text/Manifest
19 +++ b/dev-go/go-text/Manifest
20 @@ -1 +1,2 @@
21 DIST go-text-0_pre20150806.tar.gz 3736536 SHA256 377d3a95ffb01cf301e1b6050b1437f576f6bbfe32b6d97afc343bb0570b141f SHA512 dd0fc8b5abdfa6f005316bb7828c03a081485e0bd33cbf86c0b83f8bf9240973a7b0a2e6f52ef75f48ec00fc922be21a6c65ff9eb4080f28cb3f280bd4c4f5c6 WHIRLPOOL 79b6233c99984b98b5e74915029117e1f920e17789033ce2656d1590fbeafd4c69d145adeff7c57b1c7f8836397466461744959557877d27fc831da97a62b6ff
22 +DIST go-text-0_pre20160211.tar.gz 4015547 SHA256 a134ac828ec5cfda4fa8306077dd945f8717d2189f019c24d0d104cc5e6159ec SHA512 066e53f6e094a6cf3effe1a9376f7bde41c3059099381bb5adf8c84589de4dab9115ce3c8cb7f89f90e2601422f79e3906f8f498d66e364da9f830ede1f7f05f WHIRLPOOL 1952326c7b47e1adf270e74be9817cbc2a2e1c1e4a69426378d515c73264f961bb249ced3363c56a57eba1dbab64151ca86a35a77bc26c7cf33fb71b5aff95a6
23
24 diff --git a/dev-go/go-text/go-text-0_pre20160211.ebuild b/dev-go/go-text/go-text-0_pre20160211.ebuild
25 new file mode 100644
26 index 0000000..151ca4b
27 --- /dev/null
28 +++ b/dev-go/go-text/go-text-0_pre20160211.ebuild
29 @@ -0,0 +1,51 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +EGO_PN=golang.org/x/text/...
37 +EGO_SRC=golang.org/x/text
38 +
39 +if [[ ${PV} = *9999* ]]; then
40 + inherit golang-vcs
41 +else
42 + KEYWORDS="~amd64"
43 + EGIT_COMMIT="07b9a78963006a15c538ec5175243979025fa7a8"
44 + SRC_URI="https://github.com/golang/text/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
45 + inherit golang-vcs-snapshot
46 +fi
47 +inherit golang-build
48 +
49 +DESCRIPTION="Go text processing support"
50 +HOMEPAGE="https://godoc.org/golang.org/x/text"
51 +LICENSE="BSD"
52 +SLOT="0/${PVR}"
53 +IUSE=""
54 +DEPEND=""
55 +RDEPEND=""
56 +
57 +src_compile() {
58 + # Create a writable GOROOT in order to avoid sandbox violations.
59 + cp -sR "$(go env GOROOT)" "${T}/goroot" || die
60 + rm -rf "${T}/goroot/src/${EGO_SRC}" || die
61 + rm -rf "${T}/goroot/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_SRC}" || die
62 + export GOROOT="${T}/goroot"
63 + golang-build_src_compile
64 +}
65 +
66 +src_install() {
67 + golang-build_src_install
68 + export -n GOROOT
69 + exeopts -m0755 -p # preserve timestamps for bug 551486
70 + exeinto "$(go env GOROOT)/bin"
71 + doexe bin/*
72 +}
73 +
74 +src_test() {
75 + # omit $(get_golibdir_gopath) from GOPATH:
76 + #package golang.org/x/text/display (test)
77 + # imports golang.org/x/text/internal/testtext: use of internal package not allowed
78 + #FAIL golang.org/x/text/display [setup failed]
79 + GOPATH="${WORKDIR}/${P}" go test -v -work -x "${EGO_PN}" || die
80 +}