Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/bfgminer: bfgminer-4.10.1.ebuild metadata.xml bfgminer-3.10.8.ebuild bfgminer-5.0.0.ebuild ChangeLog
Date: Sun, 30 Nov 2014 00:28:06
Message-Id: 20141130002800.97925B300@oystercatcher.gentoo.org
1 blueness 14/11/30 00:28:00
2
3 Modified: metadata.xml ChangeLog
4 Added: bfgminer-4.10.1.ebuild bfgminer-3.10.8.ebuild
5 bfgminer-5.0.0.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.24 net-misc/bfgminer/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?rev=1.24&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?rev=1.24&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?r1=1.23&r2=1.24
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/bfgminer/metadata.xml,v
21 retrieving revision 1.23
22 retrieving revision 1.24
23 diff -u -r1.23 -r1.24
24 --- metadata.xml 16 Sep 2014 00:39:28 -0000 1.23
25 +++ metadata.xml 30 Nov 2014 00:28:00 -0000 1.24
26 @@ -30,10 +30,12 @@
27 <flag name='hashfast'>Enable support for mining with HashFast devices</flag>
28 <flag name='icarus'>Enable support for mining with Icarus-compatible devices (including Block Erupter Sapphire ASICs)</flag>
29 <flag name='jingtian'>Enable support for mining on JingTian boards via SPI/GPIO</flag>
30 + <flag name='keccak'>Enable support for mining with Keccak miners</flag>
31 <flag name='klondike'>Enable support for mining with Klondike USB miners</flag>
32 <flag name='libusb'>Use libusb</flag>
33 <flag name='littlefury'>Enable support for mining with LittleFury USB sticks</flag>
34 <flag name='metabank'>Enable support for mining on Metabank host Raspberry Pi</flag>
35 + <flag name='minion'>Enable support for mining on minion chips via SPI (BlackArrow Prospero)</flag>
36 <flag name='modminer'>Enable support for mining with ModMiner FPGAs</flag>
37 <flag name='nanofury'>Enable support for mining with NanoFury USB sticks</flag>
38 <flag name='opencl'>Enable support for mining with OpenCL-capable devices (GPUs)</flag>
39 @@ -44,6 +46,7 @@
40 <flag name='rockminer'>Enable support for mining with RockMiner devices</flag>
41 <flag name='screen'>Provide start-bfgminer.sh script to launch BFGMiner in app-misc/screen</flag>
42 <flag name='scrypt'>Enable support for scrypt mining algorithm</flag>
43 + <flag name='sha256d'>Enable support for SHA256d mining algorithm</flag>
44 <flag name='sse2_4way'>Enable support for CPU SSE2 4way mining algorithm</flag>
45 <flag name='sse4'>Enable support for CPU SSE4 mining algorithm</flag>
46 <flag name='twinfury'>Enable support for mining with Twinfury USB sticks</flag>
47
48
49
50 1.72 net-misc/bfgminer/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?rev=1.72&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?rev=1.72&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?r1=1.71&r2=1.72
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v
59 retrieving revision 1.71
60 retrieving revision 1.72
61 diff -u -r1.71 -r1.72
62 --- ChangeLog 5 Oct 2014 11:56:10 -0000 1.71
63 +++ ChangeLog 30 Nov 2014 00:28:00 -0000 1.72
64 @@ -1,6 +1,14 @@
65 # ChangeLog for net-misc/bfgminer
66 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.71 2014/10/05 11:56:10 blueness Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.72 2014/11/30 00:28:00 blueness Exp $
69 +
70 +*bfgminer-3.10.8 (30 Nov 2014)
71 +*bfgminer-5.0.0 (30 Nov 2014)
72 +*bfgminer-4.10.1 (30 Nov 2014)
73 +
74 + 30 Nov 2014; Anthony G. Basile <blueness@g.o> +bfgminer-3.10.8.ebuild,
75 + +bfgminer-4.10.1.ebuild, +bfgminer-5.0.0.ebuild, metadata.xml:
76 + Version bump
77
78 *bfgminer-4.7.2 (05 Oct 2014)
79 *bfgminer-4.9.0 (05 Oct 2014)
80
81
82
83 1.1 net-misc/bfgminer/bfgminer-4.10.1.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-4.10.1.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-4.10.1.ebuild?rev=1.1&content-type=text/plain
87
88 Index: bfgminer-4.10.1.ebuild
89 ===================================================================
90 # Copyright 1999-2014 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-4.10.1.ebuild,v 1.1 2014/11/30 00:28:00 blueness Exp $
93
94 EAPI=5
95
96 inherit eutils
97
98 DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
99 HOMEPAGE="https://bitcointalk.org/?topic=168174"
100 SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
101
102 LICENSE="GPL-3"
103 SLOT="0"
104 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
105
106 # TODO: knc (needs i2c-tools header)
107 # TODO: minergate (needs actual miner_gate)
108 # TODO: titan
109 IUSE="adl antminer avalon avalonmm bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex"
110 REQUIRED_USE='
111 || ( 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 )
112 adl? ( opencl )
113 bfsb? ( bitfury )
114 bfx? ( bitfury libusb )
115 bigpic? ( bitfury )
116 drillbit? ( bitfury )
117 dualminer? ( icarus )
118 gridseed? ( scrypt )
119 hashbuster? ( bitfury )
120 hashbuster2? ( bitfury libusb )
121 klondike? ( libusb )
122 littlefury? ( bitfury )
123 lm_sensors? ( opencl )
124 metabank? ( bitfury )
125 nanofury? ( bitfury )
126 scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
127 twinfury? ( bitfury )
128 unicode? ( ncurses )
129 proxy? ( || ( proxy_getwork proxy_stratum ) )
130 proxy_getwork? ( proxy )
131 proxy_stratum? ( proxy )
132 x6500? ( libusb )
133 zeusminer? ( scrypt )
134 ztex? ( libusb )
135 '
136
137 DEPEND='
138 net-misc/curl
139 ncurses? (
140 sys-libs/ncurses[unicode?]
141 )
142 >=dev-libs/jansson-2
143 dev-libs/libbase58
144 net-libs/libblkmaker
145 udev? (
146 virtual/udev
147 )
148 hashbuster? (
149 dev-libs/hidapi
150 )
151 libusb? (
152 virtual/libusb:1
153 )
154 lm_sensors? (
155 sys-apps/lm_sensors
156 )
157 nanofury? (
158 dev-libs/hidapi
159 )
160 proxy_getwork? (
161 net-libs/libmicrohttpd
162 )
163 proxy_stratum? (
164 dev-libs/libevent
165 )
166 screen? (
167 app-misc/screen
168 || (
169 >=sys-apps/coreutils-8.15
170 sys-freebsd/freebsd-bin
171 app-misc/realpath
172 )
173 )
174 '
175 RDEPEND="${DEPEND}
176 opencl? (
177 || (
178 virtual/opencl
179 virtual/opencl-sdk
180 dev-util/ati-stream-sdk
181 dev-util/ati-stream-sdk-bin
182 dev-util/amdstream
183 dev-util/amd-app-sdk
184 dev-util/amd-app-sdk-bin
185 dev-util/nvidia-cuda-sdk[opencl]
186 dev-util/intel-opencl-sdk
187 )
188 )
189 "
190 DEPEND="${DEPEND}
191 virtual/pkgconfig
192 >=dev-libs/uthash-1.9.7
193 sys-apps/sed
194 cpumining? (
195 amd64? (
196 >=dev-lang/yasm-1.0.1
197 )
198 x86? (
199 >=dev-lang/yasm-1.0.1
200 )
201 )
202 "
203
204 src_configure() {
205 local CFLAGS="${CFLAGS}"
206 local with_curses
207 use hardened && CFLAGS="${CFLAGS} -nopie"
208
209 if use ncurses; then
210 if use unicode; then
211 with_curses='--with-curses=ncursesw'
212 else
213 with_curses='--with-curses=ncurses'
214 fi
215 else
216 with_curses='--without-curses'
217 fi
218
219 CFLAGS="${CFLAGS}" \
220 econf \
221 --docdir="/usr/share/doc/${PF}" \
222 $(use_enable adl) \
223 $(use_enable antminer) \
224 $(use_enable avalon) \
225 $(use_enable avalonmm) \
226 $(use_enable bifury) \
227 $(use_enable bitforce) \
228 $(use_enable bfsb) \
229 $(use_enable bfx) \
230 $(use_enable bigpic) \
231 $(use_enable bitfury) \
232 $(use_enable cointerra) \
233 $(use_enable cpumining) \
234 $(use_enable drillbit) \
235 $(use_enable dualminer) \
236 $(use_enable gridseed) \
237 $(use_enable hashbuster) \
238 $(use_enable hashbuster2 hashbusterusb) \
239 $(use_enable hashfast) \
240 $(use_enable icarus) \
241 $(use_enable jingtian) \
242 $(use_enable klondike) \
243 $(use_enable littlefury) \
244 $(use_enable metabank) \
245 $(use_enable modminer) \
246 $(use_enable nanofury) \
247 $(use_enable opencl) \
248 $(use_enable rockminer) \
249 $(use_enable scrypt) \
250 $(use_enable twinfury) \
251 --with-system-libblkmaker \
252 $with_curses \
253 $(use_with udev libudev) \
254 $(use_enable udev-broad-rules broad-udevrules) \
255 $(use_with lm_sensors sensors) \
256 $(use_with proxy_getwork libmicrohttpd) \
257 $(use_with proxy_stratum libevent) \
258 $(use_enable x6500) \
259 $(use_enable zeusminer) \
260 $(use_enable ztex)
261 }
262
263 src_install() {
264 emake install DESTDIR="$D"
265 if ! use examples; then
266 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
267 fi
268 if ! use screen; then
269 rm "${D}/usr/bin/start-bfgminer.sh"
270 fi
271 }
272
273
274
275 1.1 net-misc/bfgminer/bfgminer-3.10.8.ebuild
276
277 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.10.8.ebuild?rev=1.1&view=markup
278 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.10.8.ebuild?rev=1.1&content-type=text/plain
279
280 Index: bfgminer-3.10.8.ebuild
281 ===================================================================
282 # Copyright 1999-2014 Gentoo Foundation
283 # Distributed under the terms of the GNU General Public License v2
284 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.10.8.ebuild,v 1.1 2014/11/30 00:28:00 blueness Exp $
285
286 EAPI=5
287
288 inherit eutils
289
290 DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
291 HOMEPAGE="https://bitcointalk.org/?topic=168174"
292 SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2"
293
294 LICENSE="GPL-3"
295 SLOT="0"
296 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
297
298 # TODO: knc (needs i2c-tools header)
299 IUSE="+adl antminer avalon bifury bitforce bfsb bigpic bitfury cpumining drillbit examples hardened hashbuster hashbuster2 hashfast icarus klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses +opencl proxy proxy_getwork proxy_stratum screen scrypt twinfury +udev unicode x6500 ztex"
300 REQUIRED_USE='
301 || ( antminer avalon bfsb bifury bigpic bitforce bitfury cpumining drillbit hashbuster hashbuster2 hashfast icarus klondike littlefury metabank modminer nanofury opencl proxy twinfury x6500 ztex )
302 adl? ( opencl )
303 bfsb? ( bitfury )
304 bigpic? ( bitfury )
305 drillbit? ( bitfury )
306 hashbuster? ( bitfury )
307 hashbuster2? ( bitfury libusb )
308 klondike? ( libusb )
309 littlefury? ( bitfury )
310 lm_sensors? ( opencl )
311 metabank? ( bitfury )
312 nanofury? ( bitfury )
313 scrypt? ( || ( cpumining opencl proxy ) )
314 twinfury? ( bitfury )
315 unicode? ( ncurses )
316 proxy? ( || ( proxy_getwork proxy_stratum ) )
317 proxy_getwork? ( proxy )
318 proxy_stratum? ( proxy )
319 x6500? ( libusb )
320 ztex? ( libusb )
321 '
322
323 DEPEND='
324 net-misc/curl
325 ncurses? (
326 sys-libs/ncurses[unicode?]
327 )
328 >=dev-libs/jansson-2
329 net-libs/libblkmaker:=
330 udev? (
331 virtual/udev
332 )
333 hashbuster? (
334 dev-libs/hidapi
335 )
336 libusb? (
337 virtual/libusb:1
338 )
339 lm_sensors? (
340 sys-apps/lm_sensors
341 )
342 nanofury? (
343 dev-libs/hidapi
344 )
345 proxy_getwork? (
346 net-libs/libmicrohttpd
347 )
348 proxy_stratum? (
349 dev-libs/libevent
350 )
351 screen? (
352 app-misc/screen
353 || (
354 >=sys-apps/coreutils-8.15
355 sys-freebsd/freebsd-bin
356 app-misc/realpath
357 )
358 )
359 '
360 RDEPEND="${DEPEND}
361 opencl? (
362 || (
363 virtual/opencl
364 virtual/opencl-sdk
365 dev-util/ati-stream-sdk
366 dev-util/ati-stream-sdk-bin
367 dev-util/amdstream
368 dev-util/amd-app-sdk
369 dev-util/amd-app-sdk-bin
370 dev-util/nvidia-cuda-sdk[opencl]
371 dev-util/intel-opencl-sdk
372 )
373 )
374 "
375 DEPEND="${DEPEND}
376 virtual/pkgconfig
377 >=dev-libs/uthash-1.9.7
378 sys-apps/sed
379 cpumining? (
380 amd64? (
381 >=dev-lang/yasm-1.0.1
382 )
383 x86? (
384 >=dev-lang/yasm-1.0.1
385 )
386 )
387 "
388
389 src_configure() {
390 local CFLAGS="${CFLAGS}"
391 local with_curses
392 use hardened && CFLAGS="${CFLAGS} -nopie"
393
394 if use ncurses; then
395 if use unicode; then
396 with_curses='--with-curses=ncursesw'
397 else
398 with_curses='--with-curses=ncurses'
399 fi
400 else
401 with_curses='--without-curses'
402 fi
403
404 CFLAGS="${CFLAGS}" \
405 econf \
406 --docdir="/usr/share/doc/${PF}" \
407 $(use_enable adl) \
408 $(use_enable antminer) \
409 $(use_enable avalon) \
410 $(use_enable bifury) \
411 $(use_enable bitforce) \
412 $(use_enable bfsb) \
413 $(use_enable bigpic) \
414 $(use_enable bitfury) \
415 $(use_enable cpumining) \
416 $(use_enable drillbit) \
417 $(use_enable hashbuster) \
418 $(use_enable hashbuster2 hashbusterusb) \
419 $(use_enable hashfast) \
420 $(use_enable icarus) \
421 $(use_enable klondike) \
422 $(use_enable littlefury) \
423 $(use_enable metabank) \
424 $(use_enable modminer) \
425 $(use_enable nanofury) \
426 $(use_enable opencl) \
427 $(use_enable scrypt) \
428 $(use_enable twinfury) \
429 --with-system-libblkmaker \
430 $with_curses \
431 $(use_with udev libudev) \
432 $(use_with lm_sensors sensors) \
433 $(use_with proxy_getwork libmicrohttpd) \
434 $(use_with proxy_stratum libevent) \
435 $(use_enable x6500) \
436 $(use_enable ztex)
437 }
438
439 src_install() {
440 emake install DESTDIR="$D"
441 if ! use examples; then
442 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
443 fi
444 if ! use screen; then
445 rm "${D}/usr/bin/start-bfgminer.sh"
446 fi
447 }
448
449
450
451 1.1 net-misc/bfgminer/bfgminer-5.0.0.ebuild
452
453 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-5.0.0.ebuild?rev=1.1&view=markup
454 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-5.0.0.ebuild?rev=1.1&content-type=text/plain
455
456 Index: bfgminer-5.0.0.ebuild
457 ===================================================================
458 # Copyright 1999-2014 Gentoo Foundation
459 # Distributed under the terms of the GNU General Public License v2
460 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-5.0.0.ebuild,v 1.1 2014/11/30 00:28:00 blueness Exp $
461
462 EAPI=5
463
464 inherit eutils
465
466 DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
467 HOMEPAGE="https://bitcointalk.org/?topic=168174"
468 SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
469
470 LICENSE="GPL-3"
471 SLOT="0"
472 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
473
474 # TODO: knc (needs i2c-tools header)
475 # TODO: kncasic & titan (need systemwide knc-asic install)
476 # TODO: minergate (needs actual miner_gate)
477 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"
478 REQUIRED_USE='
479 || ( keccak scrypt sha256d )
480 || ( 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 )
481 adl? ( opencl )
482 antminer? ( sha256d )
483 avalon? ( sha256d )
484 avalonmm? ( sha256d )
485 bfsb? ( sha256d bitfury )
486 bfx? ( sha256d bitfury libusb )
487 bifury? ( sha256d )
488 bigpic? ( sha256d bitfury )
489 bitforce? ( sha256d )
490 bitfury? ( sha256d )
491 cointerra? ( sha256d )
492 drillbit? ( sha256d bitfury )
493 dualminer? ( || ( sha256d scrypt ) icarus )
494 gridseed? ( scrypt )
495 hashbuster? ( sha256d bitfury )
496 hashbuster2? ( sha256d bitfury libusb )
497 hashfast? ( sha256d )
498 icarus? ( || ( scrypt sha256d ) )
499 jingtian? ( sha256d )
500 keccak? ( || ( cpumining opencl proxy ) )
501 klondike? ( sha256d libusb )
502 littlefury? ( sha256d bitfury )
503 lm_sensors? ( opencl )
504 metabank? ( sha256d bitfury )
505 minion? ( sha256d )
506 modminer? ( sha256d )
507 nanofury? ( sha256d bitfury )
508 scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
509 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 ) )
510 twinfury? ( bitfury )
511 unicode? ( ncurses )
512 proxy? ( || ( proxy_getwork proxy_stratum ) )
513 proxy_getwork? ( proxy )
514 proxy_stratum? ( proxy )
515 rockminer? ( sha256d )
516 twinfury? ( sha256d )
517 x6500? ( sha256d libusb )
518 zeusminer? ( scrypt )
519 ztex? ( sha256d libusb )
520 '
521
522 DEPEND='
523 net-misc/curl
524 ncurses? (
525 sys-libs/ncurses[unicode?]
526 )
527 >=dev-libs/jansson-2
528 dev-libs/libbase58
529 net-libs/libblkmaker
530 udev? (
531 virtual/udev
532 )
533 hashbuster? (
534 dev-libs/hidapi
535 )
536 libusb? (
537 virtual/libusb:1
538 )
539 lm_sensors? (
540 sys-apps/lm_sensors
541 )
542 nanofury? (
543 dev-libs/hidapi
544 )
545 proxy_getwork? (
546 net-libs/libmicrohttpd
547 )
548 proxy_stratum? (
549 dev-libs/libevent
550 )
551 screen? (
552 app-misc/screen
553 || (
554 >=sys-apps/coreutils-8.15
555 sys-freebsd/freebsd-bin
556 app-misc/realpath
557 )
558 )
559 '
560 RDEPEND="${DEPEND}
561 opencl? (
562 || (
563 virtual/opencl
564 virtual/opencl-sdk
565 dev-util/ati-stream-sdk
566 dev-util/ati-stream-sdk-bin
567 dev-util/amdstream
568 dev-util/amd-app-sdk
569 dev-util/amd-app-sdk-bin
570 dev-util/nvidia-cuda-sdk[opencl]
571 dev-util/intel-opencl-sdk
572 )
573 )
574 "
575 DEPEND="${DEPEND}
576 virtual/pkgconfig
577 >=dev-libs/uthash-1.9.7
578 sys-apps/sed
579 cpumining? (
580 amd64? (
581 >=dev-lang/yasm-1.0.1
582 )
583 x86? (
584 >=dev-lang/yasm-1.0.1
585 )
586 )
587 "
588
589 src_configure() {
590 local CFLAGS="${CFLAGS}"
591 local with_curses
592 use hardened && CFLAGS="${CFLAGS} -nopie"
593
594 if use ncurses; then
595 if use unicode; then
596 with_curses='--with-curses=ncursesw'
597 else
598 with_curses='--with-curses=ncurses'
599 fi
600 else
601 with_curses='--without-curses'
602 fi
603
604 CFLAGS="${CFLAGS}" \
605 econf \
606 --docdir="/usr/share/doc/${PF}" \
607 $(use_enable adl) \
608 $(use_enable antminer) \
609 $(use_enable avalon) \
610 $(use_enable avalonmm) \
611 $(use_enable bifury) \
612 $(use_enable bitforce) \
613 $(use_enable bfsb) \
614 $(use_enable bfx) \
615 $(use_enable bigpic) \
616 $(use_enable bitfury) \
617 $(use_enable cointerra) \
618 $(use_enable cpumining) \
619 $(use_enable drillbit) \
620 $(use_enable dualminer) \
621 $(use_enable gridseed) \
622 $(use_enable hashbuster) \
623 $(use_enable hashbuster2 hashbusterusb) \
624 $(use_enable hashfast) \
625 $(use_enable icarus) \
626 $(use_enable jingtian) \
627 $(use_enable keccak) \
628 $(use_enable klondike) \
629 $(use_enable littlefury) \
630 $(use_enable metabank) \
631 $(use_enable minion) \
632 $(use_enable modminer) \
633 $(use_enable nanofury) \
634 $(use_enable opencl) \
635 $(use_enable rockminer) \
636 $(use_enable scrypt) \
637 $(use_enable sha256d) \
638 $(use_enable twinfury) \
639 --with-system-libblkmaker \
640 $with_curses \
641 $(use_with udev libudev) \
642 $(use_enable udev-broad-rules broad-udevrules) \
643 $(use_with lm_sensors sensors) \
644 $(use_with proxy_getwork libmicrohttpd) \
645 $(use_with proxy_stratum libevent) \
646 $(use_enable x6500) \
647 $(use_enable zeusminer) \
648 $(use_enable ztex)
649 }
650
651 src_install() {
652 emake install DESTDIR="$D"
653 if ! use examples; then
654 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
655 fi
656 if ! use screen; then
657 rm "${D}/usr/bin/start-bfgminer.sh"
658 fi
659 }