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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 1 23:46:40 2014 UTC (5 years, 9 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumps, remove older, bring in line with bitcoin overlay

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

1 # Copyright 1999-2013 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.1.ebuild,v 1.1 2013/11/07 17:49:02 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 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 || (
74 virtual/opencl
75 virtual/opencl-sdk
76 dev-util/ati-stream-sdk
77 dev-util/ati-stream-sdk-bin
78 dev-util/amdstream
79 dev-util/amd-app-sdk
80 dev-util/amd-app-sdk-bin
81 dev-util/nvidia-cuda-sdk[opencl]
82 dev-util/intel-opencl-sdk
83 )
84 )
85 "
86 DEPEND="${DEPEND}
87 virtual/pkgconfig
88 >=dev-libs/uthash-1.9.2
89 sys-apps/sed
90 cpumining? (
91 amd64? (
92 >=dev-lang/yasm-1.0.1
93 )
94 x86? (
95 >=dev-lang/yasm-1.0.1
96 )
97 )
98 "
99
100 src_configure() {
101 local CFLAGS="${CFLAGS}"
102 local with_curses
103 use hardened && CFLAGS="${CFLAGS} -nopie"
104
105 if use ncurses; then
106 if use unicode; then
107 with_curses='--with-curses=ncursesw'
108 else
109 with_curses='--with-curses=ncurses'
110 fi
111 else
112 with_curses='--without-curses'
113 fi
114
115 CFLAGS="${CFLAGS}" \
116 econf \
117 --docdir="/usr/share/doc/${PF}" \
118 $(use_enable adl) \
119 $(use_enable avalon) \
120 $(use_enable bitforce) \
121 $(use_enable bfsb) \
122 $(use_enable bigpic) \
123 $(use_enable bitfury) \
124 $(use_enable cpumining) \
125 $(use_enable hashbuster) \
126 $(use_enable icarus) \
127 $(use_enable littlefury) \
128 $(use_enable metabank) \
129 $(use_enable modminer) \
130 $(use_enable nanofury) \
131 $(use_enable opencl) \
132 $(use_enable scrypt) \
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