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-crypto/
Date: Sun, 19 Aug 2018 06:38:15
Message-Id: 1534660679.d0ae10486b917df0d7443e11ba6ddf012f37b816.zmedico@gentoo
1 commit: d0ae10486b917df0d7443e11ba6ddf012f37b816
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 19 01:23:11 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 19 06:37:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0ae1048
7
8 dev-go/go-crypto: version bump to 0_pre20180816
9
10 Package-Manager: Portage-2.3.47, Repoman-2.3.10
11
12 dev-go/go-crypto/Manifest | 1 +
13 dev-go/go-crypto/go-crypto-0_pre20180816.ebuild | 45 +++++++++++++++++++++++++
14 2 files changed, 46 insertions(+)
15
16 diff --git a/dev-go/go-crypto/Manifest b/dev-go/go-crypto/Manifest
17 index ed5f3071a0a..defc1d2c4e0 100644
18 --- a/dev-go/go-crypto/Manifest
19 +++ b/dev-go/go-crypto/Manifest
20 @@ -1,2 +1,3 @@
21 DIST go-crypto-0_pre20150808.tar.gz 876947 BLAKE2B c6da903ec7b5308114f2e2a364d6a2936dc24be4f8f274116c811740f712f13b2926a6f84b6160c450d921dbbeeb7ce48371e593cfa4d8abf80308f3cf07ac26 SHA512 86826102ff7242259d79a31e543a03192d6b68a06635b46ebac349111bb8451605df1ad9b249c08d75895c38fb4ebbbfc716d40c8c981485395164e87db5a519
22 DIST go-crypto-0_pre20160126.tar.gz 902001 BLAKE2B 54d38a9aea69e01485417cbf8a900135730dca4bc79c9d5d1187eadb11a8dfca9ef6e72056c4ed4ad4a34b172379d94e6beb82ece9031411b8aa12af85200fb2 SHA512 168129ab9581b7348fb3285e045d99a0a837ac7bd65bf9f5e7a220fffbb9e2abf76da5f521c66eea7179eba0ad8da68d6f41cd9624ea40a9da25a18838427846
23 +DIST go-crypto-0_pre20180816.tar.gz 1637516 BLAKE2B 800787412e1e52f70bc3df5b1b638e86ed2c66de86522786d7e3d8959f18d02426270d1f577ebaa8077d7d98c84ca7a358bed951c862a44b9293de8edebb17b4 SHA512 d2b730ba75b49b96f35969802b7321cd2efc89dcd2e8c0b8eaca545cb18287b34ad1c9ecbd07c6b4ace8708575d4586fbe1139d032a7038cc7221ad010d08074
24
25 diff --git a/dev-go/go-crypto/go-crypto-0_pre20180816.ebuild b/dev-go/go-crypto/go-crypto-0_pre20180816.ebuild
26 new file mode 100644
27 index 00000000000..180bb7b462a
28 --- /dev/null
29 +++ b/dev-go/go-crypto/go-crypto-0_pre20180816.ebuild
30 @@ -0,0 +1,45 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +EGO_PN=golang.org/x/crypto/...
36 +EGO_SRC=golang.org/x/crypto
37 +
38 +if [[ ${PV} = *9999* ]]; then
39 + inherit golang-vcs
40 +else
41 + KEYWORDS="~amd64 ~arm ~x86"
42 + EGIT_COMMIT="aabede6cba87e37f413b3e60ebfc214f8eeca1b0"
43 + SRC_URI="https://github.com/golang/crypto/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
44 + inherit golang-vcs-snapshot
45 +fi
46 +inherit golang-build
47 +
48 +DESCRIPTION="Go supplementary cryptography libraries"
49 +HOMEPAGE="https://godoc.org/golang.org/x/crypto"
50 +LICENSE="BSD"
51 +SLOT="0/${PVR}"
52 +IUSE=""
53 +DEPEND=">=dev-go/go-sys-0_pre20180816:="
54 +RDEPEND=""
55 +
56 +src_prepare() {
57 + default
58 + sed -e 's:TestLockOpenSSHAgent(:_\0:' \
59 + -i src/${EGO_SRC}/ssh/agent/client_test.go || die
60 +}
61 +
62 +src_compile() {
63 + # Exclude $(get_golibdir_gopath) from GOPATH, for bug 577908 which may
64 + # or may not manifest, depending on what libraries are installed.
65 + mkdir -p "${T}/golibdir/src/golang.org/x" || die
66 + ln -s "$(get_golibdir_gopath)/src/golang.org/x/sys" "${T}/golibdir/src/golang.org/x/sys" || die
67 + GOPATH="${S}:${T}/golibdir" \
68 + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
69 +}
70 +
71 +src_test() {
72 + # Exclude $(get_golibdir_gopath) from GOPATH
73 + GOPATH="${S}:${T}/golibdir" \
74 + go test -v -work -x "${EGO_PN}" || die
75 +}