Gentoo Archives: gentoo-commits

From: "William Hubbs (williamh)" <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-go/go-text: go-text-0_pre20150604.ebuild ChangeLog go-text-1.4.2_p20150604.ebuild go-text-1.4.2_p20150506.ebuild
Date: Wed, 01 Jul 2015 21:18:05
Message-Id: 20150701211755.03D11741@oystercatcher.gentoo.org
1 williamh 15/07/01 21:17:55
2
3 Modified: ChangeLog
4 Added: go-text-0_pre20150604.ebuild
5 Removed: go-text-1.4.2_p20150604.ebuild
6 go-text-1.4.2_p20150506.ebuild
7 Log:
8 Move latest snapshot to a pre-release of version 0
9
10 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)
11
12 Revision Changes Path
13 1.9 dev-go/go-text/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?rev=1.9&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?rev=1.9&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?r1=1.8&r2=1.9
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v
22 retrieving revision 1.8
23 retrieving revision 1.9
24 diff -u -r1.8 -r1.9
25 --- ChangeLog 26 Jun 2015 22:54:48 -0000 1.8
26 +++ ChangeLog 1 Jul 2015 21:17:54 -0000 1.9
27 @@ -1,6 +1,13 @@
28 # ChangeLog for dev-go/go-text
29 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v 1.8 2015/06/26 22:54:48 williamh Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v 1.9 2015/07/01 21:17:54 williamh Exp $
32 +
33 +*go-text-0_pre20150604 (01 Jul 2015)
34 +
35 + 01 Jul 2015; William Hubbs <williamh@g.o>
36 + +go-text-0_pre20150604.ebuild, -go-text-1.4.2_p20150506.ebuild,
37 + -go-text-1.4.2_p20150604.ebuild:
38 + Move latest snapshot to a pre-release of version 0
39
40 26 Jun 2015; William Hubbs <williamh@g.o> go-text-9999.ebuild:
41 make live ebuild copyable
42
43
44
45 1.1 dev-go/go-text/go-text-0_pre20150604.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/go-text-0_pre20150604.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/go-text-0_pre20150604.ebuild?rev=1.1&content-type=text/plain
49
50 Index: go-text-0_pre20150604.ebuild
51 ===================================================================
52 # Copyright 1999-2015 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-0_pre20150604.ebuild,v 1.1 2015/07/01 21:17:54 williamh Exp $
55
56 EAPI=5
57
58 KEYWORDS="~amd64"
59 DESCRIPTION="Go text processing support"
60 MY_PN=${PN##*-}
61 GO_PN=golang.org/x/${MY_PN}
62 HOMEPAGE="https://godoc.org/${GO_PN}"
63 EGIT_COMMIT="df923bbb63f8ea3a26bb743e2a497abd0ab585f7"
64 SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
65 LICENSE="BSD"
66 SLOT="0"
67 IUSE=""
68 DEPEND=">=dev-lang/go-1.4"
69 RDEPEND=""
70 S="${WORKDIR}/src/${GO_PN}"
71 EGIT_CHECKOUT_DIR="${S}"
72 STRIP_MASK="*.a"
73
74 src_unpack() {
75 default
76 mkdir -p src/${GO_PN%/*} || die
77 mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die
78 }
79
80 src_compile() {
81 # Create a writable GOROOT in order to avoid sandbox violations.
82 GOROOT="${WORKDIR}/goroot"
83 cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
84 rm -rf "${GOROOT}/src/${GO_PN}" \
85 "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die
86 GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
87 }
88
89 src_test() {
90 # Create go symlink for TestLinking in display/dict_test.go
91 mkdir -p "${GOROOT}/bin"
92 ln -s /usr/bin/go "${GOROOT}/bin/go" || die
93
94 GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
95 go test -x -v ${GO_PN}/... || die $?
96 }
97
98 src_install() {
99 exeinto /usr/lib/go/bin
100 doexe "${WORKDIR}"/bin/*
101 insinto /usr/lib/go
102 find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
103 insopts -m0644 -p # preserve timestamps for bug 551486
104 doins -r "${WORKDIR}"/{pkg,src}
105 }