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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 6 11:17:52 2014 UTC (4 years, 1 month ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bumps

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

  ViewVC Help
Powered by ViewVC 1.1.20