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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jan 30 20:36:44 2015 UTC (4 years, 7 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove older versions, bug #538266.

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

1 # Copyright 1999-2014 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.8.0.ebuild,v 1.1 2014/09/16 00:39:28 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: minergate (needs actual miner_gate)
19 IUSE="adl antminer avalon avalonmm bfx bifury bitforce bfsb bigpic bitfury cointerra cpumining drillbit dualminer examples gridseed hardened hashbuster hashbuster2 hashfast icarus jingtian klondike +libusb littlefury lm_sensors metabank modminer nanofury ncurses opencl proxy proxy_getwork proxy_stratum rockminer screen scrypt twinfury +udev udev-broad-rules unicode x6500 zeusminer ztex"
20 REQUIRED_USE='
21 || ( 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 )
22 adl? ( opencl )
23 bfsb? ( bitfury )
24 bfx? ( bitfury libusb )
25 bigpic? ( bitfury )
26 drillbit? ( bitfury )
27 dualminer? ( icarus )
28 gridseed? ( scrypt )
29 hashbuster? ( bitfury )
30 hashbuster2? ( bitfury libusb )
31 klondike? ( libusb )
32 littlefury? ( bitfury )
33 lm_sensors? ( opencl )
34 metabank? ( bitfury )
35 nanofury? ( bitfury )
36 scrypt? ( || ( cpumining dualminer gridseed opencl zeusminer ) )
37 twinfury? ( bitfury )
38 unicode? ( ncurses )
39 proxy? ( || ( proxy_getwork proxy_stratum ) )
40 proxy_getwork? ( proxy )
41 proxy_stratum? ( proxy )
42 x6500? ( libusb )
43 zeusminer? ( scrypt )
44 ztex? ( libusb )
45 '
46
47 DEPEND='
48 net-misc/curl
49 ncurses? (
50 sys-libs/ncurses[unicode?]
51 )
52 >=dev-libs/jansson-2
53 dev-libs/libbase58
54 net-libs/libblkmaker:=
55 udev? (
56 virtual/udev
57 )
58 hashbuster? (
59 dev-libs/hidapi
60 )
61 libusb? (
62 virtual/libusb:1
63 )
64 lm_sensors? (
65 sys-apps/lm_sensors
66 )
67 nanofury? (
68 dev-libs/hidapi
69 )
70 proxy_getwork? (
71 net-libs/libmicrohttpd
72 )
73 proxy_stratum? (
74 dev-libs/libevent
75 )
76 screen? (
77 app-misc/screen
78 || (
79 >=sys-apps/coreutils-8.15
80 sys-freebsd/freebsd-bin
81 app-misc/realpath
82 )
83 )
84 '
85 RDEPEND="${DEPEND}
86 opencl? (
87 || (
88 virtual/opencl
89 virtual/opencl-sdk
90 dev-util/ati-stream-sdk
91 dev-util/ati-stream-sdk-bin
92 dev-util/amdstream
93 dev-util/amd-app-sdk
94 dev-util/amd-app-sdk-bin
95 dev-util/nvidia-cuda-sdk[opencl]
96 dev-util/intel-opencl-sdk
97 )
98 )
99 "
100 DEPEND="${DEPEND}
101 virtual/pkgconfig
102 >=dev-libs/uthash-1.9.7
103 sys-apps/sed
104 cpumining? (
105 amd64? (
106 >=dev-lang/yasm-1.0.1
107 )
108 x86? (
109 >=dev-lang/yasm-1.0.1
110 )
111 )
112 "
113
114 src_configure() {
115 local CFLAGS="${CFLAGS}"
116 local with_curses
117 use hardened && CFLAGS="${CFLAGS} -nopie"
118
119 if use ncurses; then
120 if use unicode; then
121 with_curses='--with-curses=ncursesw'
122 else
123 with_curses='--with-curses=ncurses'
124 fi
125 else
126 with_curses='--without-curses'
127 fi
128
129 CFLAGS="${CFLAGS}" \
130 econf \
131 --docdir="/usr/share/doc/${PF}" \
132 $(use_enable adl) \
133 $(use_enable antminer) \
134 $(use_enable avalon) \
135 $(use_enable avalonmm) \
136 $(use_enable bifury) \
137 $(use_enable bitforce) \
138 $(use_enable bfsb) \
139 $(use_enable bfx) \
140 $(use_enable bigpic) \
141 $(use_enable bitfury) \
142 $(use_enable cointerra) \
143 $(use_enable cpumining) \
144 $(use_enable drillbit) \
145 $(use_enable dualminer) \
146 $(use_enable gridseed) \
147 $(use_enable hashbuster) \
148 $(use_enable hashbuster2 hashbusterusb) \
149 $(use_enable hashfast) \
150 $(use_enable icarus) \
151 $(use_enable jingtian) \
152 $(use_enable klondike) \
153 $(use_enable littlefury) \
154 $(use_enable metabank) \
155 $(use_enable modminer) \
156 $(use_enable nanofury) \
157 $(use_enable opencl) \
158 $(use_enable rockminer) \
159 $(use_enable scrypt) \
160 $(use_enable twinfury) \
161 --with-system-libblkmaker \
162 $with_curses \
163 $(use_with udev libudev) \
164 $(use_enable udev-broad-rules broad-udevrules) \
165 $(use_with lm_sensors sensors) \
166 $(use_with proxy_getwork libmicrohttpd) \
167 $(use_with proxy_stratum libevent) \
168 $(use_enable x6500) \
169 $(use_enable zeusminer) \
170 $(use_enable ztex)
171 }
172
173 src_install() {
174 emake install DESTDIR="$D"
175 if ! use examples; then
176 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
177 fi
178 if ! use screen; then
179 rm "${D}/usr/bin/start-bfgminer.sh"
180 fi
181 }

  ViewVC Help
Powered by ViewVC 1.1.20