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

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

  ViewVC Help
Powered by ViewVC 1.1.20