/[gentoo-x86]/net-misc/bfgminer/bfgminer-5.1.0.ebuild
Gentoo

Contents of /net-misc/bfgminer/bfgminer-5.1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Feb 19 21:29:22 2015 UTC (4 years, 9 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bumps

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-4.2.0.ebuild,v 1.1 2014/06/12 14:35:32 blueness Exp $
4
5 EAPI=5
6
7 inherit eutils
8
9 DESCRIPTION="Modular Bitcoin ASIC/FPGA/GPU/CPU miner in C"
10 HOMEPAGE="https://bitcointalk.org/?topic=168174"
11 SRC_URI="http://luke.dashjr.org/programs/bitcoin/files/${PN}/${PV}/${P}.txz -> ${P}.tar.xz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
16
17 # TODO: knc (needs i2c-tools header)
18 # TODO: kncasic & titan (need systemwide knc-asic install)
19 # TODO: minergate (needs actual miner_gate)
20 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"
21 REQUIRED_USE='
22 || ( keccak scrypt sha256d )
23 || ( 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 )
24 adl? ( opencl )
25 antminer? ( sha256d )
26 avalon? ( sha256d )
27 avalonmm? ( sha256d )
28 bfsb? ( sha256d bitfury )
29 bfx? ( sha256d bitfury libusb )
30 bifury? ( sha256d )
31 bigpic? ( sha256d bitfury )
32 bitforce? ( sha256d )
33 bitfury? ( sha256d )
34 cointerra? ( sha256d )
35 drillbit? ( sha256d bitfury )
36 dualminer? ( || ( sha256d scrypt ) icarus )
37 gridseed? ( scrypt )
38 hashbuster? ( sha256d bitfury )
39 hashbuster2? ( sha256d bitfury libusb )
40 hashfast? ( sha256d )
41 icarus? ( || ( scrypt sha256d ) )
42 jingtian? ( sha256d )
43 keccak? ( || ( cpumining opencl proxy ) )
44 klondike? ( sha256d libusb )
45 littlefury? ( sha256d bitfury )
46 lm_sensors? ( opencl )
47 metabank? ( sha256d bitfury )
48 minion? ( sha256d )
49 modminer? ( sha256d )
50 nanofury? ( sha256d bitfury )
51 scrypt? ( || ( cpumining dualminer gridseed opencl proxy zeusminer ) )
52 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 ) )
53 twinfury? ( bitfury )
54 unicode? ( ncurses )
55 proxy? ( || ( proxy_getwork proxy_stratum ) )
56 proxy_getwork? ( proxy )
57 proxy_stratum? ( proxy )
58 rockminer? ( sha256d )
59 twinfury? ( sha256d )
60 x6500? ( sha256d libusb )
61 zeusminer? ( scrypt )
62 ztex? ( sha256d libusb )
63 '
64
65 DEPEND='
66 net-misc/curl
67 ncurses? (
68 sys-libs/ncurses[unicode?]
69 )
70 >=dev-libs/jansson-2
71 dev-libs/libbase58
72 net-libs/libblkmaker
73 udev? (
74 virtual/udev
75 )
76 hashbuster? (
77 dev-libs/hidapi
78 )
79 libusb? (
80 virtual/libusb:1
81 )
82 lm_sensors? (
83 sys-apps/lm_sensors
84 )
85 nanofury? (
86 dev-libs/hidapi
87 )
88 proxy_getwork? (
89 net-libs/libmicrohttpd
90 )
91 proxy_stratum? (
92 dev-libs/libevent
93 )
94 screen? (
95 app-misc/screen
96 || (
97 >=sys-apps/coreutils-8.15
98 sys-freebsd/freebsd-bin
99 app-misc/realpath
100 )
101 )
102 '
103 RDEPEND="${DEPEND}
104 opencl? (
105 || (
106 virtual/opencl
107 dev-util/nvidia-cuda-sdk[opencl]
108 )
109 )
110 "
111 DEPEND="${DEPEND}
112 virtual/pkgconfig
113 >=dev-libs/uthash-1.9.7
114 sys-apps/sed
115 cpumining? (
116 amd64? (
117 >=dev-lang/yasm-1.0.1
118 )
119 x86? (
120 >=dev-lang/yasm-1.0.1
121 )
122 )
123 "
124
125 src_configure() {
126 local CFLAGS="${CFLAGS}"
127 local with_curses
128 use hardened && CFLAGS="${CFLAGS} -nopie"
129
130 if use ncurses; then
131 if use unicode; then
132 with_curses='--with-curses=ncursesw'
133 else
134 with_curses='--with-curses=ncurses'
135 fi
136 else
137 with_curses='--without-curses'
138 fi
139
140 CFLAGS="${CFLAGS}" \
141 econf \
142 --docdir="/usr/share/doc/${PF}" \
143 $(use_enable adl) \
144 $(use_enable antminer) \
145 $(use_enable avalon) \
146 $(use_enable avalonmm) \
147 $(use_enable bifury) \
148 $(use_enable bitforce) \
149 $(use_enable bfsb) \
150 $(use_enable bfx) \
151 $(use_enable bigpic) \
152 $(use_enable bitfury) \
153 $(use_enable cointerra) \
154 $(use_enable cpumining) \
155 $(use_enable drillbit) \
156 $(use_enable dualminer) \
157 $(use_enable gridseed) \
158 $(use_enable hashbuster) \
159 $(use_enable hashbuster2 hashbusterusb) \
160 $(use_enable hashfast) \
161 $(use_enable icarus) \
162 $(use_enable jingtian) \
163 $(use_enable keccak) \
164 $(use_enable klondike) \
165 $(use_enable littlefury) \
166 $(use_enable metabank) \
167 $(use_enable minion) \
168 $(use_enable modminer) \
169 $(use_enable nanofury) \
170 $(use_enable opencl) \
171 $(use_enable rockminer) \
172 $(use_enable scrypt) \
173 $(use_enable sha256d) \
174 $(use_enable twinfury) \
175 --with-system-libblkmaker \
176 $with_curses \
177 $(use_with udev libudev) \
178 $(use_enable udev-broad-rules broad-udevrules) \
179 $(use_with lm_sensors sensors) \
180 $(use_with proxy_getwork libmicrohttpd) \
181 $(use_with proxy_stratum libevent) \
182 $(use_enable x6500) \
183 $(use_enable zeusminer) \
184 $(use_enable ztex)
185 }
186
187 src_install() {
188 emake install DESTDIR="$D"
189 if ! use examples; then
190 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
191 fi
192 if ! use screen; then
193 rm "${D}/usr/bin/start-bfgminer.sh"
194 fi
195 }

  ViewVC Help
Powered by ViewVC 1.1.20