Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/go-ethereum/
Date: Wed, 12 Oct 2016 07:38:27
Message-Id: 1476257805.cb7d65aae5a595e7b9d44b627988ea0c8066ee71.soap@gentoo
1 commit: cb7d65aae5a595e7b9d44b627988ea0c8066ee71
2 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
3 AuthorDate: Tue Oct 11 12:34:30 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 07:36:45 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb7d65aa
7
8 net-p2p/go-ethereum: add opencl USE-flag
9
10 Adds support for mining with GPU
11
12 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596720
13
14 Package-Manager: portage-2.3.0
15 Closes: https://github.com/gentoo/gentoo/pull/2532
16
17 Signed-off-by: David Seifert <soap <AT> gentoo.org>
18
19 .../{go-ethereum-1.4.17.ebuild => go-ethereum-1.4.17-r1.ebuild} | 8 ++++++--
20 net-p2p/go-ethereum/metadata.xml | 1 +
21 2 files changed, 7 insertions(+), 2 deletions(-)
22
23 diff --git a/net-p2p/go-ethereum/go-ethereum-1.4.17.ebuild b/net-p2p/go-ethereum/go-ethereum-1.4.17-r1.ebuild
24 similarity index 83%
25 rename from net-p2p/go-ethereum/go-ethereum-1.4.17.ebuild
26 rename to net-p2p/go-ethereum/go-ethereum-1.4.17-r1.ebuild
27 index e5c4fb7..28bfc26 100644
28 --- a/net-p2p/go-ethereum/go-ethereum-1.4.17.ebuild
29 +++ b/net-p2p/go-ethereum/go-ethereum-1.4.17-r1.ebuild
30 @@ -11,12 +11,16 @@ SRC_URI="https://github.com/ethereum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
31 LICENSE="GPL-3+ LGPL-3+"
32 SLOT="0"
33 KEYWORDS="~amd64 ~x86"
34 -IUSE="evm"
35 +IUSE="evm opencl"
36
37 -DEPEND="dev-lang/go:="
38 +DEPEND="dev-lang/go:=
39 + opencl? ( virtual/opencl )
40 +"
41 RDEPEND="${DEPEND}"
42
43 src_compile() {
44 + use opencl && export GO_OPENCL=true
45 +
46 emake geth
47 use evm && emake evm
48 }
49
50 diff --git a/net-p2p/go-ethereum/metadata.xml b/net-p2p/go-ethereum/metadata.xml
51 index d543310..8a476b0 100644
52 --- a/net-p2p/go-ethereum/metadata.xml
53 +++ b/net-p2p/go-ethereum/metadata.xml
54 @@ -11,5 +11,6 @@
55 </maintainer>
56 <use>
57 <flag name="evm">Build Ethereum Virtual Machine (EVM)</flag>
58 + <flag name="opencl">Add OpenCL GPU mining support</flag>
59 </use>
60 </pkgmetadata>