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-crypto: go-crypto-9999.ebuild
Date: Thu, 25 Jun 2015 17:21:59
Message-Id: 20150625172145.25797A4D@oystercatcher.gentoo.org
1 williamh 15/06/25 17:21:45
2
3 Modified: go-crypto-9999.ebuild
4 Log:
5 Convert live ebuild to the new go 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.6 dev-go/go-crypto/go-crypto-9999.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?rev=1.6&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?rev=1.6&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?r1=1.5&r2=1.6
15
16 Index: go-crypto-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild,v
19 retrieving revision 1.5
20 retrieving revision 1.6
21 diff -u -r1.5 -r1.6
22 --- go-crypto-9999.ebuild 9 Jun 2015 03:22:30 -0000 1.5
23 +++ go-crypto-9999.ebuild 25 Jun 2015 17:21:45 -0000 1.6
24 @@ -1,27 +1,24 @@
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-crypto/go-crypto-9999.ebuild,v 1.5 2015/06/09 03:22:30 zmedico Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild,v 1.6 2015/06/25 17:21:45 williamh Exp $
29
30 EAPI=5
31 -inherit git-r3
32 +inherit golang-build golang-vcs
33 +EGO_PN=golang.org/x/crypto/...
34 +EGO_SRC=golang.org/x/crypto
35
36 -KEYWORDS=""
37 DESCRIPTION="Go supplementary cryptography libraries"
38 -GO_PN=golang.org/x/${PN##*-}
39 HOMEPAGE="https://godoc.org/${GO_PN}"
40 -EGIT_REPO_URI="https://go.googlesource.com/${PN##*-}"
41 LICENSE="BSD"
42 SLOT="0"
43 IUSE=""
44 -DEPEND=">=dev-lang/go-1.4"
45 +DEPEND=""
46 RDEPEND=""
47 -S="${WORKDIR}/src/${GO_PN}"
48 -EGIT_CHECKOUT_DIR="${S}"
49 -STRIP_MASK="*.a"
50
51 src_prepare() {
52 # disable broken tests
53 - sed -e 's:TestAgentForward(:_\0:' -i ssh/test/agent_unix_test.go || die
54 + sed -e 's:TestAgentForward(:_\0:' \
55 + -i src/${EGO_SRC}/ssh/test/agent_unix_test.go || die
56 sed -e 's:TestRunCommandSuccess(:_\0:' \
57 -e 's:TestRunCommandStdin(:_\0:' \
58 -e 's:TestRunCommandStdinError(:_\0:' \
59 @@ -29,26 +26,5 @@
60 -e 's:TestFuncLargeRead(:_\0:' \
61 -e 's:TestKeyChange(:_\0:' \
62 -e 's:TestValidTerminalMode(:_\0:' \
63 - -i ssh/test/session_test.go || die
64 -}
65 -
66 -src_compile() {
67 - # Create a writable GOROOT in order to avoid sandbox violations.
68 - GOROOT="${WORKDIR}/goroot"
69 - cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
70 - rm -rf "${GOROOT}/src/${GO_PN%/*}" \
71 - "${GOROOT}/pkg/linux_${ARCH}/${GO_PN%/*}" || die
72 - GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
73 -}
74 -
75 -src_test() {
76 - GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
77 - go test -x -v ${GO_PN}/... || die $?
78 -}
79 -
80 -src_install() {
81 - insinto /usr/lib/go
82 - find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
83 - insopts -m0644 -p # preserve timestamps for bug 551486
84 - doins -r "${WORKDIR}"/{pkg,src}
85 + -i src/${EGO_SRC}/ssh/test/session_test.go || die
86 }