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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 16 00:39:28 2014 UTC (5 years, 1 month ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumps, remove older unstable

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

  ViewVC Help
Powered by ViewVC 1.1.20