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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 1 12:11:28 2015 UTC (3 years, 7 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
x86 stable wrt bug #516646

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

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

  ViewVC Help
Powered by ViewVC 1.1.20