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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon May 26 23:07:36 2014 UTC (4 years, 1 month 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.8.0.ebuild,v 1.1 2014/01/01 23:46:40 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 avalon bifury bitforce bfsb bigpic bitfury cpumining examples hardened hashbuster hashbuster2 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 hashbuster? ( bitfury )
28 hashbuster2? ( bitfury libusb )
29 klondike? ( libusb )
30 littlefury? ( bitfury )
31 lm_sensors? ( opencl )
32 metabank? ( bitfury )
33 nanofury? ( bitfury )
34 scrypt? ( || ( cpumining opencl ) )
35 twinfury? ( bitfury )
36 unicode? ( ncurses )
37 proxy? ( || ( proxy_getwork proxy_stratum ) )
38 proxy_getwork? ( proxy )
39 proxy_stratum? ( proxy )
40 x6500? ( libusb )
41 ztex? ( libusb )
42 "
43
44 DEPEND="
45 net-misc/curl
46 ncurses? (
47 sys-libs/ncurses[unicode?]
48 )
49 >=dev-libs/jansson-2
50 net-libs/libblkmaker
51 udev? (
52 virtual/udev
53 )
54 hashbuster? (
55 dev-libs/hidapi
56 )
57 libusb? (
58 virtual/libusb:1
59 )
60 lm_sensors? (
61 sys-apps/lm_sensors
62 )
63 nanofury? (
64 dev-libs/hidapi
65 )
66 proxy_getwork? (
67 net-libs/libmicrohttpd
68 )
69 proxy_stratum? (
70 dev-libs/libevent
71 )
72 "
73 RDEPEND="${DEPEND}
74 opencl? (
75 virtual/opencl
76 )
77 "
78 DEPEND="${DEPEND}
79 virtual/pkgconfig
80 >=dev-libs/uthash-1.9.7
81 sys-apps/sed
82 cpumining? (
83 amd64? (
84 >=dev-lang/yasm-1.0.1
85 )
86 x86? (
87 >=dev-lang/yasm-1.0.1
88 )
89 )
90 "
91
92 src_configure() {
93 local CFLAGS="${CFLAGS}"
94 local with_curses
95 use hardened && CFLAGS="${CFLAGS} -nopie"
96
97 if use ncurses; then
98 if use unicode; then
99 with_curses='--with-curses=ncursesw'
100 else
101 with_curses='--with-curses=ncurses'
102 fi
103 else
104 with_curses='--without-curses'
105 fi
106
107 CFLAGS="${CFLAGS}" \
108 econf \
109 --docdir="/usr/share/doc/${PF}" \
110 $(use_enable adl) \
111 $(use_enable avalon) \
112 $(use_enable bifury) \
113 $(use_enable bitforce) \
114 $(use_enable bfsb) \
115 $(use_enable bigpic) \
116 $(use_enable bitfury) \
117 $(use_enable cpumining) \
118 $(use_enable hashbuster) \
119 $(use_enable hashbuster2) \
120 $(use_enable icarus) \
121 $(use_enable klondike) \
122 $(use_enable littlefury) \
123 $(use_enable metabank) \
124 $(use_enable modminer) \
125 $(use_enable nanofury) \
126 $(use_enable opencl) \
127 $(use_enable scrypt) \
128 $(use_enable twinfury) \
129 --with-system-libblkmaker \
130 $with_curses \
131 $(use_with udev libudev) \
132 $(use_with lm_sensors sensors) \
133 $(use_with proxy_getwork libmicrohttpd) \
134 $(use_with proxy_stratum libevent) \
135 $(use_enable x6500) \
136 $(use_enable ztex)
137 }
138
139 src_install() {
140 emake install DESTDIR="$D"
141 if ! use examples; then
142 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
143 fi
144 }

  ViewVC Help
Powered by ViewVC 1.1.20