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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Jun 9 19:45:35 2015 UTC (4 years, 7 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bump.

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

1 blueness 1.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     virtual/opencl-sdk
108     dev-util/ati-stream-sdk
109     dev-util/ati-stream-sdk-bin
110     dev-util/amdstream
111     dev-util/amd-app-sdk
112     dev-util/amd-app-sdk-bin
113     dev-util/nvidia-cuda-sdk[opencl]
114     dev-util/intel-opencl-sdk
115     )
116     )
117     "
118     DEPEND="${DEPEND}
119     virtual/pkgconfig
120     >=dev-libs/uthash-1.9.7
121     sys-apps/sed
122     cpumining? (
123     amd64? (
124     >=dev-lang/yasm-1.0.1
125     )
126     x86? (
127     >=dev-lang/yasm-1.0.1
128     )
129     )
130     "
131    
132     src_configure() {
133     local CFLAGS="${CFLAGS}"
134     local with_curses
135     use hardened && CFLAGS="${CFLAGS} -nopie"
136    
137     if use ncurses; then
138     if use unicode; then
139     with_curses='--with-curses=ncursesw'
140     else
141     with_curses='--with-curses=ncurses'
142     fi
143     else
144     with_curses='--without-curses'
145     fi
146    
147     CFLAGS="${CFLAGS}" \
148     econf \
149     --docdir="/usr/share/doc/${PF}" \
150     $(use_enable adl) \
151     $(use_enable antminer) \
152     $(use_enable avalon) \
153     $(use_enable avalonmm) \
154     $(use_enable bifury) \
155     $(use_enable bitforce) \
156     $(use_enable bfsb) \
157     $(use_enable bfx) \
158     $(use_enable bigpic) \
159     $(use_enable bitfury) \
160     $(use_enable cointerra) \
161     $(use_enable cpumining) \
162     $(use_enable drillbit) \
163     $(use_enable dualminer) \
164     $(use_enable gridseed) \
165     $(use_enable hashbuster) \
166     $(use_enable hashbuster2 hashbusterusb) \
167     $(use_enable hashfast) \
168     $(use_enable icarus) \
169     $(use_enable jingtian) \
170     $(use_enable keccak) \
171     $(use_enable klondike) \
172     $(use_enable littlefury) \
173     $(use_enable metabank) \
174     $(use_enable minion) \
175     $(use_enable modminer) \
176     $(use_enable nanofury) \
177     $(use_enable opencl) \
178     $(use_enable rockminer) \
179     $(use_enable scrypt) \
180     $(use_enable sha256d) \
181     $(use_enable twinfury) \
182     --with-system-libblkmaker \
183     $with_curses \
184     $(use_with udev libudev) \
185     $(use_enable udev-broad-rules broad-udevrules) \
186     $(use_with lm_sensors sensors) \
187     $(use_with proxy_getwork libmicrohttpd) \
188     $(use_with proxy_stratum libevent) \
189     $(use_enable x6500) \
190     $(use_enable zeusminer) \
191     $(use_enable ztex)
192     }
193    
194     src_install() {
195     emake install DESTDIR="$D"
196     if ! use examples; then
197     rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
198     fi
199     if ! use screen; then
200     rm "${D}/usr/bin/start-bfgminer.sh"
201     fi
202     }

  ViewVC Help
Powered by ViewVC 1.1.20