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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 26 23:07:36 2014 UTC (5 years, 4 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumps and remove unstables

(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-3.10.0.ebuild,v 1.1 2014/01/18 14:05:06 blueness Exp $
4
5 EAPI="4"
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 ~ppc ~ppc64 ~x86"
16
17 # Waiting for dev-libs/hidapi to be keyworded
18 #KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
19
20 # TODO: knc (needs i2c-tools header)
21 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 scrypt twinfury +udev unicode x6500 ztex"
22 REQUIRED_USE="
23 || ( avalon bitforce cpumining icarus modminer opencl proxy x6500 ztex )
24 adl? ( opencl )
25 bfsb? ( bitfury )
26 bigpic? ( bitfury )
27 drillbit? ( bitfury )
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 opencl ) )
36 twinfury? ( bitfury )
37 unicode? ( ncurses )
38 proxy? ( || ( proxy_getwork proxy_stratum ) )
39 proxy_getwork? ( proxy )
40 proxy_stratum? ( proxy )
41 x6500? ( libusb )
42 ztex? ( libusb )
43 "
44
45 DEPEND="
46 net-misc/curl
47 ncurses? (
48 sys-libs/ncurses[unicode?]
49 )
50 >=dev-libs/jansson-2
51 net-libs/libblkmaker
52 udev? (
53 virtual/udev
54 )
55 hashbuster? (
56 dev-libs/hidapi
57 )
58 libusb? (
59 virtual/libusb:1
60 )
61 lm_sensors? (
62 sys-apps/lm_sensors
63 )
64 nanofury? (
65 dev-libs/hidapi
66 )
67 proxy_getwork? (
68 net-libs/libmicrohttpd
69 )
70 proxy_stratum? (
71 dev-libs/libevent
72 )
73 "
74 RDEPEND="${DEPEND}
75 opencl? (
76 virtual/opencl
77 )
78 "
79 DEPEND="${DEPEND}
80 virtual/pkgconfig
81 >=dev-libs/uthash-1.9.7
82 sys-apps/sed
83 cpumining? (
84 amd64? (
85 >=dev-lang/yasm-1.0.1
86 )
87 x86? (
88 >=dev-lang/yasm-1.0.1
89 )
90 )
91 "
92
93 src_configure() {
94 local CFLAGS="${CFLAGS}"
95 local with_curses
96 use hardened && CFLAGS="${CFLAGS} -nopie"
97
98 if use ncurses; then
99 if use unicode; then
100 with_curses='--with-curses=ncursesw'
101 else
102 with_curses='--with-curses=ncurses'
103 fi
104 else
105 with_curses='--without-curses'
106 fi
107
108 CFLAGS="${CFLAGS}" \
109 econf \
110 --docdir="/usr/share/doc/${PF}" \
111 $(use_enable adl) \
112 $(use_enable antminer) \
113 $(use_enable avalon) \
114 $(use_enable bifury) \
115 $(use_enable bitforce) \
116 $(use_enable bfsb) \
117 $(use_enable bigpic) \
118 $(use_enable bitfury) \
119 $(use_enable cpumining) \
120 $(use_enable drillbit) \
121 $(use_enable hashbuster) \
122 $(use_enable hashbuster2) \
123 $(use_enable hashfast) \
124 $(use_enable icarus) \
125 $(use_enable klondike) \
126 $(use_enable littlefury) \
127 $(use_enable metabank) \
128 $(use_enable modminer) \
129 $(use_enable nanofury) \
130 $(use_enable opencl) \
131 $(use_enable scrypt) \
132 $(use_enable twinfury) \
133 --with-system-libblkmaker \
134 $with_curses \
135 $(use_with udev libudev) \
136 $(use_with lm_sensors sensors) \
137 $(use_with proxy_getwork libmicrohttpd) \
138 $(use_with proxy_stratum libevent) \
139 $(use_enable x6500) \
140 $(use_enable ztex)
141 }
142
143 src_install() {
144 emake install DESTDIR="$D"
145 if ! use examples; then
146 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
147 fi
148 }

  ViewVC Help
Powered by ViewVC 1.1.20