1 |
blueness 13/10/27 16:30:15 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: bfgminer-3.2.3.ebuild bfgminer-3.3.0-r1.ebuild |
5 |
bfgminer-3.4.0.ebuild bfgminer-3.0.10.ebuild |
6 |
Log: |
7 |
Version bumps |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.12 net-misc/bfgminer/metadata.xml |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?rev=1.12&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?rev=1.12&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/metadata.xml?r1=1.11&r2=1.12 |
17 |
|
18 |
Index: metadata.xml |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/bfgminer/metadata.xml,v |
21 |
retrieving revision 1.11 |
22 |
retrieving revision 1.12 |
23 |
diff -u -r1.11 -r1.12 |
24 |
--- metadata.xml 22 Oct 2013 16:25:24 -0000 1.11 |
25 |
+++ metadata.xml 27 Oct 2013 16:30:15 -0000 1.12 |
26 |
@@ -14,9 +14,15 @@ |
27 |
<flag name='adl'>Enable support for controlling fans and overclocking on AMD cards with AMD Display Library</flag> |
28 |
<flag name='avalon'>Enable support for mining with Avalon ASIC modules</flag> |
29 |
<flag name='bitforce'>Enable support for mining with ButterFly Labs BitFORCE ASICs and/or FPGAs</flag> |
30 |
+ <flag name='bfsb'>Enable support for mining on BFSB host Raspberry Pi</flag> |
31 |
+ <flag name='bigpic'>Enable support for mining with Big Picture Mining USB sticks (Red/BlueFury, BF1, etc)</flag> |
32 |
+ <flag name='bitfury'>Enable support for mining with 55nm Bitfury-based devices</flag> |
33 |
<flag name='cpumining'>Enable support for mining with CPUs</flag> |
34 |
<flag name='icarus'>Enable support for mining with Icarus-compatible devices (including Block Erupter Sapphire ASICs)</flag> |
35 |
+ <flag name='littlefury'>Enable support for mining with LittleFury USB sticks</flag> |
36 |
+ <flag name='metabank'>Enable support for mining on Metabank host Raspberry Pi</flag> |
37 |
<flag name='modminer'>Enable support for mining with ModMiner FPGAs</flag> |
38 |
+ <flag name='nanofury'>Enable support for mining with NanoFury USB sticks</flag> |
39 |
<flag name='opencl'>Enable support for mining with OpenCL-capable devices (GPUs)</flag> |
40 |
<flag name='padlock'>Enable support for mining with VIA Padlock CPUs</flag> |
41 |
<flag name='proxy'>Enable support for virtual proxy device</flag> |
42 |
|
43 |
|
44 |
|
45 |
1.50 net-misc/bfgminer/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?rev=1.50&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?rev=1.50&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/ChangeLog?r1=1.49&r2=1.50 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v |
54 |
retrieving revision 1.49 |
55 |
retrieving revision 1.50 |
56 |
diff -u -r1.49 -r1.50 |
57 |
--- ChangeLog 22 Oct 2013 16:25:24 -0000 1.49 |
58 |
+++ ChangeLog 27 Oct 2013 16:30:15 -0000 1.50 |
59 |
@@ -1,6 +1,16 @@ |
60 |
# ChangeLog for net-misc/bfgminer |
61 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.49 2013/10/22 16:25:24 blueness Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/ChangeLog,v 1.50 2013/10/27 16:30:15 blueness Exp $ |
64 |
+ |
65 |
+*bfgminer-3.3.0-r1 (27 Oct 2013) |
66 |
+*bfgminer-3.4.0 (27 Oct 2013) |
67 |
+*bfgminer-3.0.10 (27 Oct 2013) |
68 |
+*bfgminer-3.2.3 (27 Oct 2013) |
69 |
+ |
70 |
+ 27 Oct 2013; Anthony G. Basile <blueness@g.o> +bfgminer-3.0.10.ebuild, |
71 |
+ +bfgminer-3.2.3.ebuild, +bfgminer-3.3.0-r1.ebuild, +bfgminer-3.4.0.ebuild, |
72 |
+ metadata.xml: |
73 |
+ Version bumps |
74 |
|
75 |
*bfgminer-3.3.0 (22 Oct 2013) |
76 |
*bfgminer-3.0.9 (22 Oct 2013) |
77 |
|
78 |
|
79 |
|
80 |
1.1 net-misc/bfgminer/bfgminer-3.2.3.ebuild |
81 |
|
82 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.2.3.ebuild?rev=1.1&view=markup |
83 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.2.3.ebuild?rev=1.1&content-type=text/plain |
84 |
|
85 |
Index: bfgminer-3.2.3.ebuild |
86 |
=================================================================== |
87 |
# Copyright 1999-2013 Gentoo Foundation |
88 |
# Distributed under the terms of the GNU General Public License v2 |
89 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.2.3.ebuild,v 1.1 2013/10/27 16:30:15 blueness Exp $ |
90 |
|
91 |
EAPI="4" |
92 |
|
93 |
inherit eutils |
94 |
|
95 |
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C" |
96 |
HOMEPAGE="https://bitcointalk.org/?topic=168174" |
97 |
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" |
98 |
|
99 |
LICENSE="GPL-3" |
100 |
SLOT="0" |
101 |
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
102 |
|
103 |
IUSE="+adl avalon bitforce cpumining examples hardened icarus lm_sensors modminer ncurses +opencl proxy scrypt +udev unicode x6500 ztex" |
104 |
REQUIRED_USE=" |
105 |
|| ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex ) |
106 |
adl? ( opencl ) |
107 |
lm_sensors? ( opencl ) |
108 |
scrypt? ( || ( cpumining opencl ) ) |
109 |
unicode? ( ncurses ) |
110 |
" |
111 |
|
112 |
DEPEND=" |
113 |
net-misc/curl |
114 |
ncurses? ( |
115 |
sys-libs/ncurses[unicode?] |
116 |
) |
117 |
>=dev-libs/jansson-2 |
118 |
net-libs/libblkmaker |
119 |
udev? ( |
120 |
virtual/udev |
121 |
) |
122 |
lm_sensors? ( |
123 |
sys-apps/lm_sensors |
124 |
) |
125 |
proxy? ( |
126 |
net-libs/libmicrohttpd |
127 |
) |
128 |
x6500? ( |
129 |
virtual/libusb:1 |
130 |
) |
131 |
ztex? ( |
132 |
virtual/libusb:1 |
133 |
) |
134 |
" |
135 |
RDEPEND="${DEPEND} |
136 |
opencl? ( |
137 |
virtual/opencl |
138 |
) |
139 |
" |
140 |
DEPEND="${DEPEND} |
141 |
virtual/pkgconfig |
142 |
>=dev-libs/uthash-1.9.2 |
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 |
fi |
166 |
|
167 |
CFLAGS="${CFLAGS}" \ |
168 |
econf \ |
169 |
--docdir="/usr/share/doc/${PF}" \ |
170 |
$(use_enable adl) \ |
171 |
$(use_enable avalon) \ |
172 |
$(use_enable bitforce) \ |
173 |
$(use_enable cpumining) \ |
174 |
$(use_enable icarus) \ |
175 |
$(use_enable modminer) \ |
176 |
$(use_with ncurses curses) \ |
177 |
$(use_enable opencl) \ |
178 |
$(use_enable scrypt) \ |
179 |
--with-system-libblkmaker \ |
180 |
$with_curses |
181 |
$(use_with udev libudev) \ |
182 |
$(use_with lm_sensors sensors) \ |
183 |
$(use_with proxy libmicrohttpd) \ |
184 |
$(use_enable x6500) \ |
185 |
$(use_enable ztex) |
186 |
} |
187 |
|
188 |
src_install() { |
189 |
emake install DESTDIR="$D" |
190 |
if ! use examples; then |
191 |
rm -r "${D}/usr/share/doc/${PF}/rpc-examples" |
192 |
fi |
193 |
} |
194 |
|
195 |
|
196 |
|
197 |
1.1 net-misc/bfgminer/bfgminer-3.3.0-r1.ebuild |
198 |
|
199 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.3.0-r1.ebuild?rev=1.1&view=markup |
200 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.3.0-r1.ebuild?rev=1.1&content-type=text/plain |
201 |
|
202 |
Index: bfgminer-3.3.0-r1.ebuild |
203 |
=================================================================== |
204 |
# Copyright 1999-2013 Gentoo Foundation |
205 |
# Distributed under the terms of the GNU General Public License v2 |
206 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.3.0-r1.ebuild,v 1.1 2013/10/27 16:30:15 blueness Exp $ |
207 |
|
208 |
EAPI="4" |
209 |
|
210 |
inherit eutils |
211 |
|
212 |
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C" |
213 |
HOMEPAGE="https://bitcointalk.org/?topic=168174" |
214 |
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" |
215 |
|
216 |
LICENSE="GPL-3" |
217 |
SLOT="0" |
218 |
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
219 |
|
220 |
IUSE="+adl avalon bitforce bfsb bigpic bitfury cpumining examples hardened icarus littlefury lm_sensors metabank modminer ncurses +opencl proxy proxy_getwork proxy_stratum scrypt +udev unicode x6500 ztex" |
221 |
REQUIRED_USE=" |
222 |
|| ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex ) |
223 |
adl? ( opencl ) |
224 |
bfsb? ( bitfury ) |
225 |
bigpic? ( bitfury ) |
226 |
littlefury? ( bitfury ) |
227 |
lm_sensors? ( opencl ) |
228 |
metabank? ( bitfury ) |
229 |
scrypt? ( || ( cpumining opencl ) ) |
230 |
unicode? ( ncurses ) |
231 |
proxy? ( || ( proxy_getwork proxy_stratum ) ) |
232 |
proxy_getwork? ( proxy ) |
233 |
proxy_stratum? ( proxy ) |
234 |
" |
235 |
|
236 |
DEPEND=" |
237 |
net-misc/curl |
238 |
ncurses? ( |
239 |
sys-libs/ncurses[unicode?] |
240 |
) |
241 |
>=dev-libs/jansson-2 |
242 |
net-libs/libblkmaker |
243 |
udev? ( |
244 |
virtual/udev |
245 |
) |
246 |
lm_sensors? ( |
247 |
sys-apps/lm_sensors |
248 |
) |
249 |
proxy_getwork? ( |
250 |
net-libs/libmicrohttpd |
251 |
) |
252 |
proxy_stratum? ( |
253 |
dev-libs/libevent |
254 |
) |
255 |
x6500? ( |
256 |
virtual/libusb:1 |
257 |
) |
258 |
ztex? ( |
259 |
virtual/libusb:1 |
260 |
) |
261 |
" |
262 |
RDEPEND="${DEPEND} |
263 |
opencl? ( |
264 |
virtual/opencl |
265 |
) |
266 |
" |
267 |
DEPEND="${DEPEND} |
268 |
virtual/pkgconfig |
269 |
>=dev-libs/uthash-1.9.2 |
270 |
sys-apps/sed |
271 |
cpumining? ( |
272 |
amd64? ( |
273 |
>=dev-lang/yasm-1.0.1 |
274 |
) |
275 |
x86? ( |
276 |
>=dev-lang/yasm-1.0.1 |
277 |
) |
278 |
) |
279 |
" |
280 |
|
281 |
src_configure() { |
282 |
local CFLAGS="${CFLAGS}" |
283 |
local with_curses |
284 |
use hardened && CFLAGS="${CFLAGS} -nopie" |
285 |
|
286 |
if use ncurses; then |
287 |
if use unicode; then |
288 |
with_curses='--with-curses=ncursesw' |
289 |
else |
290 |
with_curses='--with-curses=ncurses' |
291 |
fi |
292 |
fi |
293 |
|
294 |
CFLAGS="${CFLAGS}" \ |
295 |
econf \ |
296 |
--docdir="/usr/share/doc/${PF}" \ |
297 |
$(use_enable adl) \ |
298 |
$(use_enable avalon) \ |
299 |
$(use_enable bitforce) \ |
300 |
$(use_enable bfsb) \ |
301 |
$(use_enable bigpic) \ |
302 |
$(use_enable bitfury) \ |
303 |
$(use_enable cpumining) \ |
304 |
$(use_enable icarus) \ |
305 |
$(use_enable littlefury) \ |
306 |
$(use_enable metabank) \ |
307 |
$(use_enable modminer) \ |
308 |
$(use_with ncurses curses) \ |
309 |
$(use_enable opencl) \ |
310 |
$(use_enable scrypt) \ |
311 |
--with-system-libblkmaker \ |
312 |
$with_curses |
313 |
$(use_with udev libudev) \ |
314 |
$(use_with lm_sensors sensors) \ |
315 |
$(use_with proxy_getwork libmicrohttpd) \ |
316 |
$(use_with proxy_stratum libevent) \ |
317 |
$(use_enable x6500) \ |
318 |
$(use_enable ztex) |
319 |
} |
320 |
|
321 |
src_install() { |
322 |
emake install DESTDIR="$D" |
323 |
if ! use examples; then |
324 |
rm -r "${D}/usr/share/doc/${PF}/rpc-examples" |
325 |
fi |
326 |
} |
327 |
|
328 |
|
329 |
|
330 |
1.1 net-misc/bfgminer/bfgminer-3.4.0.ebuild |
331 |
|
332 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.4.0.ebuild?rev=1.1&view=markup |
333 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.4.0.ebuild?rev=1.1&content-type=text/plain |
334 |
|
335 |
Index: bfgminer-3.4.0.ebuild |
336 |
=================================================================== |
337 |
# Copyright 1999-2013 Gentoo Foundation |
338 |
# Distributed under the terms of the GNU General Public License v2 |
339 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.4.0.ebuild,v 1.1 2013/10/27 16:30:15 blueness Exp $ |
340 |
|
341 |
EAPI="4" |
342 |
|
343 |
inherit eutils |
344 |
|
345 |
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C" |
346 |
HOMEPAGE="https://bitcointalk.org/?topic=168174" |
347 |
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" |
348 |
|
349 |
LICENSE="GPL-3" |
350 |
SLOT="0" |
351 |
KEYWORDS="~amd64 ~x86" |
352 |
|
353 |
# Waiting for dev-libs/hidapi to be keyworded |
354 |
#KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
355 |
|
356 |
# TODO: knc (needs i2c-tools header) |
357 |
IUSE="+adl avalon bitforce bfsb bigpic bitfury cpumining examples hardened icarus littlefury lm_sensors metabank modminer nanofury ncurses +opencl proxy proxy_getwork proxy_stratum scrypt +udev unicode x6500 ztex" |
358 |
REQUIRED_USE=" |
359 |
|| ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex ) |
360 |
adl? ( opencl ) |
361 |
bfsb? ( bitfury ) |
362 |
bigpic? ( bitfury ) |
363 |
littlefury? ( bitfury ) |
364 |
lm_sensors? ( opencl ) |
365 |
metabank? ( bitfury ) |
366 |
nanofury? ( bitfury ) |
367 |
scrypt? ( || ( cpumining opencl ) ) |
368 |
unicode? ( ncurses ) |
369 |
proxy? ( || ( proxy_getwork proxy_stratum ) ) |
370 |
proxy_getwork? ( proxy ) |
371 |
proxy_stratum? ( proxy ) |
372 |
" |
373 |
|
374 |
DEPEND=" |
375 |
net-misc/curl |
376 |
ncurses? ( |
377 |
sys-libs/ncurses[unicode?] |
378 |
) |
379 |
>=dev-libs/jansson-2 |
380 |
net-libs/libblkmaker |
381 |
udev? ( |
382 |
virtual/udev |
383 |
) |
384 |
lm_sensors? ( |
385 |
sys-apps/lm_sensors |
386 |
) |
387 |
nanofury? ( |
388 |
dev-libs/hidapi |
389 |
) |
390 |
proxy_getwork? ( |
391 |
net-libs/libmicrohttpd |
392 |
) |
393 |
proxy_stratum? ( |
394 |
dev-libs/libevent |
395 |
) |
396 |
x6500? ( |
397 |
virtual/libusb:1 |
398 |
) |
399 |
ztex? ( |
400 |
virtual/libusb:1 |
401 |
) |
402 |
" |
403 |
RDEPEND="${DEPEND} |
404 |
opencl? ( |
405 |
virtual/opencl |
406 |
) |
407 |
" |
408 |
DEPEND="${DEPEND} |
409 |
virtual/pkgconfig |
410 |
>=dev-libs/uthash-1.9.2 |
411 |
sys-apps/sed |
412 |
cpumining? ( |
413 |
amd64? ( |
414 |
>=dev-lang/yasm-1.0.1 |
415 |
) |
416 |
x86? ( |
417 |
>=dev-lang/yasm-1.0.1 |
418 |
) |
419 |
) |
420 |
" |
421 |
|
422 |
src_configure() { |
423 |
local CFLAGS="${CFLAGS}" |
424 |
local with_curses |
425 |
use hardened && CFLAGS="${CFLAGS} -nopie" |
426 |
|
427 |
if use ncurses; then |
428 |
if use unicode; then |
429 |
with_curses='--with-curses=ncursesw' |
430 |
else |
431 |
with_curses='--with-curses=ncurses' |
432 |
fi |
433 |
fi |
434 |
|
435 |
CFLAGS="${CFLAGS}" \ |
436 |
econf \ |
437 |
--docdir="/usr/share/doc/${PF}" \ |
438 |
$(use_enable adl) \ |
439 |
$(use_enable avalon) \ |
440 |
$(use_enable bitforce) \ |
441 |
$(use_enable bfsb) \ |
442 |
$(use_enable bigpic) \ |
443 |
$(use_enable bitfury) \ |
444 |
$(use_enable cpumining) \ |
445 |
$(use_enable icarus) \ |
446 |
$(use_enable littlefury) \ |
447 |
$(use_enable metabank) \ |
448 |
$(use_enable modminer) \ |
449 |
$(use_enable nanofury) \ |
450 |
$(use_with ncurses curses) \ |
451 |
$(use_enable opencl) \ |
452 |
$(use_enable scrypt) \ |
453 |
--with-system-libblkmaker \ |
454 |
$with_curses |
455 |
$(use_with udev libudev) \ |
456 |
$(use_with lm_sensors sensors) \ |
457 |
$(use_with proxy_getwork libmicrohttpd) \ |
458 |
$(use_with proxy_stratum libevent) \ |
459 |
$(use_enable x6500) \ |
460 |
$(use_enable ztex) |
461 |
} |
462 |
|
463 |
src_install() { |
464 |
emake install DESTDIR="$D" |
465 |
if ! use examples; then |
466 |
rm -r "${D}/usr/share/doc/${PF}/rpc-examples" |
467 |
fi |
468 |
} |
469 |
|
470 |
|
471 |
|
472 |
1.1 net-misc/bfgminer/bfgminer-3.0.10.ebuild |
473 |
|
474 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.0.10.ebuild?rev=1.1&view=markup |
475 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/bfgminer/bfgminer-3.0.10.ebuild?rev=1.1&content-type=text/plain |
476 |
|
477 |
Index: bfgminer-3.0.10.ebuild |
478 |
=================================================================== |
479 |
# Copyright 1999-2013 Gentoo Foundation |
480 |
# Distributed under the terms of the GNU General Public License v2 |
481 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.0.10.ebuild,v 1.1 2013/10/27 16:30:15 blueness Exp $ |
482 |
|
483 |
EAPI="4" |
484 |
|
485 |
inherit eutils |
486 |
|
487 |
DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C" |
488 |
HOMEPAGE="https://bitcointalk.org/?topic=168174" |
489 |
SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.tbz2" |
490 |
|
491 |
LICENSE="GPL-3" |
492 |
SLOT="0" |
493 |
KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" |
494 |
|
495 |
IUSE="+adl altivec avalon bitforce +cpumining examples hardened icarus modminer ncurses +opencl padlock scrypt sse2 sse2_4way sse4 +udev x6500 ztex" |
496 |
REQUIRED_USE=" |
497 |
|| ( avalon bitforce cpumining icarus modminer opencl x6500 ztex ) |
498 |
adl? ( opencl ) |
499 |
altivec? ( cpumining ppc ppc64 ) |
500 |
padlock? ( cpumining || ( amd64 x86 ) ) |
501 |
scrypt? ( || ( cpumining opencl ) ) |
502 |
sse2? ( cpumining || ( amd64 x86 ) ) |
503 |
sse4? ( cpumining amd64 ) |
504 |
" |
505 |
|
506 |
DEPEND=" |
507 |
net-misc/curl |
508 |
ncurses? ( |
509 |
sys-libs/ncurses |
510 |
) |
511 |
>=dev-libs/jansson-2 |
512 |
net-libs/libblkmaker |
513 |
udev? ( |
514 |
virtual/udev |
515 |
) |
516 |
x6500? ( |
517 |
virtual/libusb:1 |
518 |
) |
519 |
ztex? ( |
520 |
virtual/libusb:1 |
521 |
) |
522 |
" |
523 |
RDEPEND="${DEPEND} |
524 |
opencl? ( |
525 |
virtual/opencl |
526 |
) |
527 |
" |
528 |
DEPEND="${DEPEND} |
529 |
virtual/pkgconfig |
530 |
sys-apps/sed |
531 |
sse2? ( |
532 |
>=dev-lang/yasm-1.0.1 |
533 |
) |
534 |
sse4? ( |
535 |
>=dev-lang/yasm-1.0.1 |
536 |
) |
537 |
" |
538 |
|
539 |
src_prepare() { |
540 |
sed -i 's/\(^\#define WANT_.*\(SSE\|PADLOCK\|ALTIVEC\)\)/\/\/ \1/' miner.h |
541 |
} |
542 |
|
543 |
src_configure() { |
544 |
local CFLAGS="${CFLAGS}" |
545 |
if ! use altivec; then |
546 |
sed -i 's/-faltivec//g' configure |
547 |
else |
548 |
CFLAGS="${CFLAGS} -DWANT_ALTIVEC=1" |
549 |
fi |
550 |
use padlock && CFLAGS="${CFLAGS} -DWANT_VIA_PADLOCK=1" |
551 |
if use sse2; then |
552 |
if use amd64; then |
553 |
CFLAGS="${CFLAGS} -DWANT_X8664_SSE2=1" |
554 |
else |
555 |
CFLAGS="${CFLAGS} -DWANT_X8632_SSE2=1" |
556 |
fi |
557 |
fi |
558 |
use sse2_4way && CFLAGS="${CFLAGS} -DWANT_SSE2_4WAY=1" |
559 |
use sse4 && CFLAGS="${CFLAGS} -DWANT_X8664_SSE4=1" |
560 |
use hardened && CFLAGS="${CFLAGS} -nopie" |
561 |
|
562 |
CFLAGS="${CFLAGS}" \ |
563 |
econf \ |
564 |
$(use_enable adl) \ |
565 |
$(use_enable avalon) \ |
566 |
$(use_enable bitforce) \ |
567 |
$(use_enable cpumining) \ |
568 |
$(use_enable icarus) \ |
569 |
$(use_enable modminer) \ |
570 |
$(use_with ncurses curses) \ |
571 |
$(use_enable opencl) \ |
572 |
$(use_enable scrypt) \ |
573 |
--with-system-libblkmaker \ |
574 |
$(use_with udev libudev) \ |
575 |
$(use_enable x6500) \ |
576 |
$(use_enable ztex) |
577 |
# sanitize directories |
578 |
sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/bfgminer"'"~' config.h |
579 |
} |
580 |
|
581 |
src_install() { |
582 |
dobin bfgminer |
583 |
dobin bfgminer-rpc |
584 |
dodoc AUTHORS HACKING NEWS README README.RPC |
585 |
if use scrypt; then |
586 |
dodoc README.scrypt |
587 |
fi |
588 |
if use icarus || use bitforce; then |
589 |
dodoc README.FPGA |
590 |
fi |
591 |
if use bitforce; then |
592 |
dobin bitforce-firmware-flash |
593 |
fi |
594 |
if use modminer || use x6500; then |
595 |
insinto /usr/lib/bfgminer/bitstreams |
596 |
doins bitstreams/fpgaminer*.bit |
597 |
dodoc bitstreams/COPYING_fpgaminer |
598 |
fi |
599 |
if use opencl; then |
600 |
insinto /usr/lib/bfgminer |
601 |
doins *.cl |
602 |
fi |
603 |
if use ztex; then |
604 |
insinto /usr/lib/bfgminer/ztex |
605 |
doins bitstreams/ztex*.bit |
606 |
dodoc bitstreams/COPYING_ztex |
607 |
fi |
608 |
if use examples; then |
609 |
docinto examples |
610 |
dodoc api-example.php miner.php api-example.c api-example.py |
611 |
fi |
612 |
} |