net-p2p/go-ethereum: add opencl USE-flag
authorMathy Vanvoorden <mathy@vanvoorden.be>
Tue, 11 Oct 2016 12:34:30 +0000 (14:34 +0200)
committerDavid Seifert <soap@gentoo.org>
Wed, 12 Oct 2016 07:36:45 +0000 (09:36 +0200)
Adds support for mining with GPU

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596720

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2532

Signed-off-by: David Seifert <soap@gentoo.org>
net-p2p/go-ethereum/go-ethereum-1.4.17-r1.ebuild [moved from net-p2p/go-ethereum/go-ethereum-1.4.17.ebuild with 83% similarity]
net-p2p/go-ethereum/metadata.xml

similarity index 83%
rename from net-p2p/go-ethereum/go-ethereum-1.4.17.ebuild
rename to net-p2p/go-ethereum/go-ethereum-1.4.17-r1.ebuild
index e5c4fb7ef62a5db8f98864a403274f00d83cc068..28bfc26b14b2d8fece1fe14aa6aa1b505ef3d9ae 100644 (file)
@@ -11,12 +11,16 @@ SRC_URI="https://github.com/ethereum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3+ LGPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="evm"
+IUSE="evm opencl"
 
-DEPEND="dev-lang/go:="
+DEPEND="dev-lang/go:=
+       opencl? ( virtual/opencl )
+"
 RDEPEND="${DEPEND}"
 
 src_compile() {
+       use opencl && export GO_OPENCL=true
+
        emake geth
        use evm && emake evm
 }
index d543310232133c529253d9418b69d26875630b59..8a476b0cf138c29b581add89aca253d689591327 100644 (file)
@@ -11,5 +11,6 @@
        </maintainer>
        <use>
                <flag name="evm">Build Ethereum Virtual Machine (EVM)</flag>
+               <flag name="opencl">Add OpenCL GPU mining support</flag>
        </use>
 </pkgmetadata>