Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/go-ethereum/
Date: Tue, 18 Sep 2018 09:37:51
Message-Id: 1537262760.2d1fec4428a682bd450e2ca0cd98335b0fa9696c.mgorny@gentoo
1 commit: 2d1fec4428a682bd450e2ca0cd98335b0fa9696c
2 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
3 AuthorDate: Thu Sep 13 07:58:06 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 18 09:26:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d1fec44
7
8 net-p2p/go-ethereum: version bump to 1.8.15, restrict test
9
10 test is restricted because it tries to connect to the docker daemon and other fun network activities
11
12 Closes: https://bugs.gentoo.org/665436
13 Closes: https://bugs.gentoo.org/653542
14 Package-Manager: Portage[mgorny]-2.3.43.3
15
16 net-p2p/go-ethereum/Manifest | 1 +
17 net-p2p/go-ethereum/go-ethereum-1.8.15.ebuild | 45 +++++++++++++++++++++++++++
18 2 files changed, 46 insertions(+)
19
20 diff --git a/net-p2p/go-ethereum/Manifest b/net-p2p/go-ethereum/Manifest
21 index 1577deb4926..1fc16204ea4 100644
22 --- a/net-p2p/go-ethereum/Manifest
23 +++ b/net-p2p/go-ethereum/Manifest
24 @@ -1 +1,2 @@
25 +DIST go-ethereum-1.8.15.tar.gz 11101556 BLAKE2B 19c92a473be363da3070cc6d264e2826b05430ed22fab2fa2567baaea3bd03f056d540639fc9f247cf3d45ded30ef28e5611f4eb0fda36324d46a0e1dad0e581 SHA512 d542881cbc2712eb35d327f26e14384fcfd273cfc9ee2b231c2a59bd1db18297a8444443551c186aa4942af2b5143e062845dcb2fa7c1daba50a6158a4ffe57f
26 DIST go-ethereum-1.8.2.tar.gz 9129180 BLAKE2B 8a1e841c8c9f0c0f0adcb08610996c0a06b0133aae89fc0b67543a4aa6d0209b9dbb5b5cff5fc83eb62f7b00ff650cedb7823d640fe4d222698063c8d818f1d5 SHA512 d09bb18098e866ecbabf8e5b796e1a93c125556525b55eaddc2ec870ea84ca861feab3f56b83f31adf9e5d4001df6f2045b82b9224a6017cc6791be04d202271
27
28 diff --git a/net-p2p/go-ethereum/go-ethereum-1.8.15.ebuild b/net-p2p/go-ethereum/go-ethereum-1.8.15.ebuild
29 new file mode 100644
30 index 00000000000..74e968bc795
31 --- /dev/null
32 +++ b/net-p2p/go-ethereum/go-ethereum-1.8.15.ebuild
33 @@ -0,0 +1,45 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +inherit golang-base
40 +
41 +DESCRIPTION="Official golang implementation of the Ethereum protocol"
42 +HOMEPAGE="https://github.com/ethereum/go-ethereum"
43 +SRC_URI="https://github.com/ethereum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3+ LGPL-3+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="devtools opencl"
49 +
50 +DEPEND="dev-lang/go:=
51 + opencl? ( virtual/opencl )
52 +"
53 +RDEPEND="${DEPEND}"
54 +
55 +# Does all kinds of wonky stuff like connecting to Docker daemon, network activity, ...
56 +RESTRICT="test"
57 +
58 +src_compile() {
59 + use opencl && export GO_OPENCL=true
60 +
61 + emake $(usex devtools all geth)
62 +}
63 +
64 +src_install() {
65 + einstalldocs
66 +
67 + dobin build/bin/geth
68 + if use devtools; then
69 + dobin build/bin/abigen
70 + dobin build/bin/bootnode
71 + dobin build/bin/evm
72 + dobin build/bin/p2psim
73 + dobin build/bin/puppeth
74 + dobin build/bin/rlpdump
75 + dobin build/bin/swarm
76 + dobin build/bin/wnode
77 + fi
78 +}