Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/bfgminer/
Date: Mon, 28 Mar 2016 09:36:31
Message-Id: 1459158178.36a179cdf70a44c0a2530fc2e1b49e7eb76df89f.blueness@gentoo
1 commit: 36a179cdf70a44c0a2530fc2e1b49e7eb76df89f
2 Author: Luke Dashjr <luke-jr+git <AT> utopios <DOT> org>
3 AuthorDate: Mon Mar 28 07:31:48 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 28 09:42:58 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36a179cd
7
8 net-misc/bfgminer: version bump to 5.4.2
9
10 net-misc/bfgminer/Manifest | 1 +
11 net-misc/bfgminer/bfgminer-5.4.2.ebuild | 195 ++++++++++++++++++++++++++++++++
12 2 files changed, 196 insertions(+)
13
14 diff --git a/net-misc/bfgminer/Manifest b/net-misc/bfgminer/Manifest
15 index 1de7771..d12685b 100644
16 --- a/net-misc/bfgminer/Manifest
17 +++ b/net-misc/bfgminer/Manifest
18 @@ -5,3 +5,4 @@ DIST bfgminer-4.10.4.tar.xz 988348 SHA256 93c7e5f3170b39353fa4e924268a2497810df6
19 DIST bfgminer-5.3.0.tar.xz 1017536 SHA256 d48fa6e51ff70ee1a85f77334a24f842ca6774c073c2d864fe739f07093ef77f SHA512 935b2a0595a2230f8ba9f832a280f52418c1b50b884010bebd2059cbef83d28c535d8d0b3cd7abe5b2420f6dc9fa8e9e0e32839ccdb6cd002a1e874dc5b1841a WHIRLPOOL 0244c9cf2a8928590f69819cfaa222498ae9e0b65aba4c0bc3fc751b7712e9284110ef238dd3bdeaa0562f4eaa292b4257e4d509966ff8e92731dd3f1d9f8ecc
20 DIST bfgminer-5.4.0.tar.xz 1037568 SHA256 c265e060919545bd2cdb187de0549b372413c49ca02c5bd5621ef9a91b9f5c0c SHA512 26d49e0a8b336c6dcfbae7abb4d5fc97707dffc0cb9d790984d02c4557d8383120b58c8a3e08ce7cc4f5bbfc051d01d518181eab4344b57d119527dfb1d75f84 WHIRLPOOL 2299b8a4082a59541f13cd04cb516b40d599f3080c70c7020e4581bb4ed583902d2221fd418cd13b8d6edcaaf3290db4f03e8e4fc6073ca31a33786b1da547bd
21 DIST bfgminer-5.4.1.tar.xz 1037828 SHA256 1a0c3e43741d9061aa0b5257353a812b84632fc8ac7d5ec84d91fb134803cc0c SHA512 3ef88991c18743bfe90749e488ae512a7d10b33ef22d4b1bd6ebfeb3e19cbdb6886f20b1b625b9003cca5b417d8cb814143941d8e2b982552ffb623a4f0e0959 WHIRLPOOL 132d2a8c0ca23e11232af8644e4ab77dee6b15ae64a6a9a1ae1c8efae0c3332c84f133777256f7975d63e5b55d0436d7e7c504d99c491d9879c7598f68e863bc
22 +DIST bfgminer-5.4.2.tar.xz 1039200 SHA256 7030632a08cfc5a3fdca485fd8d7213d8f41560134c54d356426b974d91ce01a SHA512 b5ae8ae44df166d5576f89683ce9ee0832ca1f506b2522da7e3cd432abc5e218e9080e2a79f4da29e40db0d3179e63c9a8907d5d6b60d5d4895d6cac2b15d8ca WHIRLPOOL b6472c13e65dc9be18bbc760a1c9f84a70a25d695408d52c8ef9de461e6c7539a9915d85cced4b09c797686499280ad5109d9332a28f56ea4a9e3c0babf05394
23
24 diff --git a/net-misc/bfgminer/bfgminer-5.4.2.ebuild b/net-misc/bfgminer/bfgminer-5.4.2.ebuild
25 new file mode 100644
26 index 0000000..12c5b79
27 --- /dev/null
28 +++ b/net-misc/bfgminer/bfgminer-5.4.2.ebuild
29 @@ -0,0 +1,195 @@
30 +# Copyright 1999-2015 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +inherit eutils
37 +
38 +DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
39 +HOMEPAGE="https://bitcointalk.org/?topic=168174"
40 +SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
45 +
46 +# TODO: knc (needs i2c-tools header)
47 +# TODO: kncasic & titan (need systemwide knc-asic install)
48 +# TODO: minergate (needs actual miner_gate)
49 +IUSE="adl antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian keccak klondike +libusb littlefury lm_sensors metabank minion modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt +sha256d twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex"
50 +REQUIRED_USE='
51 + || ( keccak scrypt sha256d )
52 + || ( antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury cointerra cpumining drillbit dualminer gridseed hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 zeusminer ztex )
53 + adl? ( opencl )
54 + antminer? ( sha256d )
55 + avalon? ( sha256d )
56 + avalonmm? ( sha256d )
57 + bfsb? ( sha256d bitfury )
58 + bfx? ( sha256d bitfury libusb )
59 + bifury? ( sha256d )
60 + bigpic? ( sha256d bitfury )
61 + bitforce? ( sha256d )
62 + bitfury? ( sha256d )
63 + cointerra? ( sha256d )
64 + drillbit? ( sha256d bitfury )
65 + dualminer? ( || ( sha256d scrypt ) icarus )
66 + gridseed? ( scrypt )
67 + hashbuster? ( sha256d bitfury )
68 + hashbuster2? ( sha256d bitfury libusb )
69 + hashfast? ( sha256d )
70 + icarus? ( || ( scrypt sha256d ) )
71 + jingtian? ( sha256d )
72 + keccak? ( || ( cpumining opencl proxy ) )
73 + klondike? ( sha256d libusb )
74 + littlefury? ( sha256d bitfury )
75 + lm_sensors? ( opencl )
76 + metabank? ( sha256d bitfury )
77 + minion? ( sha256d )
78 + modminer? ( sha256d )
79 + nanofury? ( sha256d bitfury )
80 + scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
81 + sha256d? ( || ( antminer avalon avalonmm bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer hashbuster hashbuster2 hashfast icarus jingtian klondike littlefury metabank modminer nanofury opencl proxy rockminer twinfury x6500 ztex ) )
82 + twinfury? ( bitfury )
83 + unicode? ( ncurses )
84 + proxy? ( || ( proxy_getwork proxy_stratum ) )
85 + proxy_getwork? ( proxy )
86 + proxy_stratum? ( proxy )
87 + rockminer? ( sha256d )
88 + twinfury? ( sha256d )
89 + x6500? ( sha256d libusb )
90 + zeusminer? ( scrypt icarus )
91 + ztex? ( sha256d libusb )
92 +'
93 +
94 +DEPEND='
95 + net-misc/curl
96 + ncurses? (
97 + sys-libs/ncurses:=[unicode?]
98 + )
99 + >=dev-libs/jansson-2
100 + dev-libs/libbase58
101 + net-libs/libblkmaker
102 + udev? (
103 + virtual/udev
104 + )
105 + hashbuster? (
106 + dev-libs/hidapi
107 + )
108 + libusb? (
109 + virtual/libusb:1
110 + )
111 + lm_sensors? (
112 + sys-apps/lm_sensors
113 + )
114 + nanofury? (
115 + dev-libs/hidapi
116 + )
117 + proxy_getwork? (
118 + net-libs/libmicrohttpd
119 + )
120 + proxy_stratum? (
121 + dev-libs/libevent
122 + )
123 + screen? (
124 + app-misc/screen
125 + || (
126 + >=sys-apps/coreutils-8.15
127 + sys-freebsd/freebsd-bin
128 + app-misc/realpath
129 + )
130 + )
131 +'
132 +RDEPEND="${DEPEND}
133 + opencl? (
134 + || (
135 + virtual/opencl
136 + dev-util/nvidia-cuda-sdk[opencl]
137 + )
138 + )
139 +"
140 +DEPEND="${DEPEND}
141 + virtual/pkgconfig
142 + >=dev-libs/uthash-1.9.7
143 + sys-apps/sed
144 + cpumining? (
145 + amd64? (
146 + >=dev-lang/yasm-1.0.1
147 + )
148 + x86? (
149 + >=dev-lang/yasm-1.0.1
150 + )
151 + )
152 +"
153 +
154 +src_configure() {
155 + local CFLAGS="${CFLAGS}"
156 + local with_curses
157 + use hardened && CFLAGS="${CFLAGS} -nopie"
158 +
159 + if use ncurses; then
160 + if use unicode; then
161 + with_curses='--with-curses=ncursesw'
162 + else
163 + with_curses='--with-curses=ncurses'
164 + fi
165 + else
166 + with_curses='--without-curses'
167 + fi
168 +
169 + CFLAGS="${CFLAGS}" \
170 + econf \
171 + --docdir="/usr/share/doc/${PF}" \
172 + $(use_enable adl) \
173 + $(use_enable antminer) \
174 + $(use_enable avalon) \
175 + $(use_enable avalonmm) \
176 + $(use_enable bifury) \
177 + $(use_enable bitforce) \
178 + $(use_enable bfsb) \
179 + $(use_enable bfx) \
180 + $(use_enable bigpic) \
181 + $(use_enable bitfury) \
182 + $(use_enable cointerra) \
183 + $(use_enable cpumining) \
184 + $(use_enable drillbit) \
185 + $(use_enable dualminer) \
186 + $(use_enable gridseed) \
187 + $(use_enable hashbuster) \
188 + $(use_enable hashbuster2 hashbusterusb) \
189 + $(use_enable hashfast) \
190 + $(use_enable icarus) \
191 + $(use_enable jingtian) \
192 + $(use_enable keccak) \
193 + $(use_enable klondike) \
194 + $(use_enable littlefury) \
195 + $(use_enable metabank) \
196 + $(use_enable minion) \
197 + $(use_enable modminer) \
198 + $(use_enable nanofury) \
199 + $(use_enable opencl) \
200 + $(use_enable rockminer) \
201 + $(use_enable scrypt) \
202 + $(use_enable sha256d) \
203 + $(use_enable twinfury) \
204 + --with-system-libblkmaker \
205 + $with_curses \
206 + $(use_with udev libudev) \
207 + $(use_enable udev-broad-rules broad-udevrules) \
208 + $(use_with lm_sensors sensors) \
209 + $(use_with proxy_getwork libmicrohttpd) \
210 + $(use_with proxy_stratum libevent) \
211 + $(use_enable x6500) \
212 + $(use_enable zeusminer) \
213 + $(use_enable ztex)
214 +}
215 +
216 +src_install() {
217 + emake install DESTDIR="$D"
218 + if ! use examples; then
219 + rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
220 + fi
221 + if ! use screen; then
222 + rm "${D}/usr/bin/start-bfgminer.sh"
223 + fi
224 +}