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