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: Wed, 10 Jan 2018 16:59:16
Message-Id: 1515603545.f9cccdf7058539ac74a130d145d72349174f385a.blueness@gentoo
1 commit: f9cccdf7058539ac74a130d145d72349174f385a
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 10 16:55:44 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 10 16:59:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9cccdf7
7
8 net-misc/bfgminer: version bump to 5.5.0
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.3
11
12 net-misc/bfgminer/Manifest | 1 +
13 net-misc/bfgminer/bfgminer-5.5.0.ebuild | 195 ++++++++++++++++++++++++++++++++
14 net-misc/bfgminer/metadata.xml | 2 +
15 3 files changed, 198 insertions(+)
16
17 diff --git a/net-misc/bfgminer/Manifest b/net-misc/bfgminer/Manifest
18 index 0ffa766568b..d228402fb3b 100644
19 --- a/net-misc/bfgminer/Manifest
20 +++ b/net-misc/bfgminer/Manifest
21 @@ -1 +1,2 @@
22 DIST bfgminer-5.4.2.tar.xz 1039200 BLAKE2B f63a7fa2c85d352a366794a39619599db6ccc3f98508ccd90387b315374227d74edfcfd2329db8b57c96539b194b0d2ee746cbea032c241dab1cf93e717b137d SHA512 b5ae8ae44df166d5576f89683ce9ee0832ca1f506b2522da7e3cd432abc5e218e9080e2a79f4da29e40db0d3179e63c9a8907d5d6b60d5d4895d6cac2b15d8ca
23 +DIST bfgminer-5.5.0.tar.xz 1054664 BLAKE2B db841a73bca10b19205744be531c13f2c4435bd69c9f2af7b8aba84381af640028cc4db33df399cf05dd0bbec7b79a5b65679bcb2a8bec7624f6fbc47e9ebd79 SHA512 d1adae473e01fcf1cd0efde74d3e8ce10609e520397d688bf4e226c1113c1606c782e3cfdba6847f1a3886cac30de6b5baa03b731aca86287d53bf01ef705cdb
24
25 diff --git a/net-misc/bfgminer/bfgminer-5.5.0.ebuild b/net-misc/bfgminer/bfgminer-5.5.0.ebuild
26 new file mode 100644
27 index 00000000000..44b0c667244
28 --- /dev/null
29 +++ b/net-misc/bfgminer/bfgminer-5.5.0.ebuild
30 @@ -0,0 +1,195 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
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 alchemist avalon avalonmm bitmain 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 + || ( alchemist avalon avalonmm bitmain 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 + alchemist? ( scrypt )
55 + avalon? ( sha256d )
56 + avalonmm? ( sha256d )
57 + bitmain? ( sha256d )
58 + bfsb? ( sha256d bitfury )
59 + bfx? ( sha256d bitfury libusb )
60 + bifury? ( sha256d )
61 + bigpic? ( sha256d bitfury )
62 + bitforce? ( sha256d )
63 + bitfury? ( sha256d )
64 + cointerra? ( sha256d )
65 + drillbit? ( sha256d bitfury )
66 + dualminer? ( || ( sha256d scrypt ) icarus )
67 + gridseed? ( scrypt )
68 + hashbuster? ( sha256d bitfury )
69 + hashbuster2? ( sha256d bitfury libusb )
70 + hashfast? ( sha256d )
71 + icarus? ( || ( scrypt sha256d ) )
72 + jingtian? ( sha256d )
73 + keccak? ( || ( cpumining opencl proxy ) )
74 + klondike? ( sha256d libusb )
75 + littlefury? ( sha256d bitfury )
76 + lm_sensors? ( opencl )
77 + metabank? ( sha256d bitfury )
78 + minion? ( sha256d )
79 + modminer? ( sha256d )
80 + nanofury? ( sha256d bitfury )
81 + scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
82 + sha256d? ( || ( avalon avalonmm bitmain 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 ) )
83 + unicode? ( ncurses )
84 + proxy? ( || ( proxy_getwork proxy_stratum ) )
85 + proxy_getwork? ( proxy )
86 + proxy_stratum? ( proxy )
87 + rockminer? ( sha256d )
88 + twinfury? ( bitfury 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} -no-pie"
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 alchemist)\
174 + $(use_enable avalon) \
175 + $(use_enable avalonmm) \
176 + $(use_enable bifury) \
177 + $(use_enable bitforce) \
178 + $(use_enable bitmain) \
179 + $(use_enable bfsb) \
180 + $(use_enable bfx) \
181 + $(use_enable bigpic) \
182 + $(use_enable bitfury) \
183 + $(use_enable cointerra) \
184 + $(use_enable cpumining) \
185 + $(use_enable drillbit) \
186 + $(use_enable dualminer) \
187 + $(use_enable gridseed) \
188 + $(use_enable hashbuster) \
189 + $(use_enable hashbuster2 hashbusterusb) \
190 + $(use_enable hashfast) \
191 + $(use_enable icarus) \
192 + $(use_enable jingtian) \
193 + $(use_enable keccak) \
194 + $(use_enable klondike) \
195 + $(use_enable littlefury) \
196 + $(use_enable metabank) \
197 + $(use_enable minion) \
198 + $(use_enable modminer) \
199 + $(use_enable nanofury) \
200 + $(use_enable opencl) \
201 + $(use_enable rockminer) \
202 + $(use_enable scrypt) \
203 + $(use_enable sha256d) \
204 + $(use_enable twinfury) \
205 + --with-system-libblkmaker \
206 + $with_curses \
207 + $(use_with udev libudev) \
208 + $(use_enable udev-broad-rules broad-udevrules) \
209 + $(use_with lm_sensors sensors) \
210 + $(use_with proxy_getwork libmicrohttpd) \
211 + $(use_with proxy_stratum libevent) \
212 + $(use_enable x6500) \
213 + $(use_enable zeusminer) \
214 + $(use_enable ztex)
215 +}
216 +
217 +src_install() {
218 + emake install DESTDIR="$D"
219 + if ! use examples; then
220 + rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
221 + fi
222 + if ! use screen; then
223 + rm "${D}/usr/bin/start-bfgminer.sh"
224 + fi
225 +}
226
227 diff --git a/net-misc/bfgminer/metadata.xml b/net-misc/bfgminer/metadata.xml
228 index aa456e90bce..0a9f60a01da 100644
229 --- a/net-misc/bfgminer/metadata.xml
230 +++ b/net-misc/bfgminer/metadata.xml
231 @@ -11,11 +11,13 @@
232 </maintainer>
233 <use>
234 <flag name="adl">Enable support for controlling fans and overclocking on AMD cards with AMD Display Library</flag>
235 + <flag name="alchemist">Enable support for mining with AlcheMist</flag>
236 <flag name="antminer">Enable support for mining with AntMiner U1 sticks</flag>
237 <flag name="avalon">Enable support for mining with Avalon 1 ASIC modules</flag>
238 <flag name="avalonmm">Enable support for mining with Avalon 2/3 ASIC modules</flag>
239 <flag name="bifury">Enable support for mining with Bi*fury USB sticks</flag>
240 <flag name="bitforce">Enable support for mining with ButterFly Labs BitFORCE ASICs and/or FPGAs</flag>
241 + <flag name="bitmain">Enable support for mining with Bitmain Antminer S* series</flag>
242 <flag name="bfsb">Enable support for mining on BFSB host Raspberry Pi</flag>
243 <flag name="bfx">Enable support for mining with BFx2 USB sticks</flag>
244 <flag name="bigpic">Enable support for mining with Big Picture Mining USB sticks (Red/BlueFury, BF1, etc)</flag>