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-sys: go-sys-9999.ebuild
Date: Thu, 25 Jun 2015 17:57:07
Message-Id: 20150625175649.8D473A4E@oystercatcher.gentoo.org
1 williamh 15/06/25 17:56:49
2
3 Modified: go-sys-9999.ebuild
4 Log:
5 Convert live ebuild to use the new eclasses
6
7 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)
8
9 Revision Changes Path
10 1.3 dev-go/go-sys/go-sys-9999.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?r1=1.2&r2=1.3
15
16 Index: go-sys-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- go-sys-9999.ebuild 9 Jun 2015 03:28:08 -0000 1.2
23 +++ go-sys-9999.ebuild 25 Jun 2015 17:56:49 -0000 1.3
24 @@ -1,45 +1,16 @@
25 # Copyright 1999-2015 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.2 2015/06/09 03:28:08 zmedico Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.3 2015/06/25 17:56:49 williamh Exp $
29
30 EAPI=5
31 -inherit git-r3
32 +inherit golang-build golang-vcs
33 +EGO_PN=golang.org/x/sys/...
34 +EGO_SRC=golang.org/x/sys
35
36 -KEYWORDS=""
37 DESCRIPTION="Go packages for low-level interaction with the operating system"
38 -GO_PN=golang.org/x/${PN##*-}
39 -HOMEPAGE="https://godoc.org/${GO_PN}"
40 -EGIT_REPO_URI="https://go.googlesource.com/${PN##*-}"
41 +HOMEPAGE="https://godoc.org/golang.org/x/sys"
42 LICENSE="BSD"
43 SLOT="0"
44 IUSE=""
45 -DEPEND=">=dev-lang/go-1.4"
46 +DEPEND=""
47 RDEPEND=""
48 -S="${WORKDIR}/src/${GO_PN}"
49 -EGIT_CHECKOUT_DIR="${S}"
50 -STRIP_MASK="*.a"
51 -
52 -src_compile() {
53 - # Create a writable GOROOT in order to avoid sandbox violations.
54 - GOROOT="${WORKDIR}/goroot"
55 - cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
56 - rm -rf "${GOROOT}/src/${GO_PN%%/*}" \
57 - "${GOROOT}/pkg/linux_${ARCH}/${GO_PN%%/*}" || die
58 - GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
59 - go install -x -v -work ${GO_PN}/unix/... || die
60 -}
61 -
62 -src_test() {
63 - GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
64 - go test -x -v golang.org/x/sys/unix/... || die
65 -}
66 -
67 -src_install() {
68 - insinto /usr/lib/go
69 - doins -r "${WORKDIR}"/pkg
70 - insinto /usr/lib/go/src/${GO_PN}
71 - find "${WORKDIR}"/src/${GO_PN} -name '.git*' -exec \
72 - rm -rf {} \; 2>/dev/null
73 - insopts -m0644 -p # preserve timestamps for bug 551486
74 - doins -r "${WORKDIR}"/src/${GO_PN}/unix
75 -}