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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 27 16:30:15 2013 UTC (8 months, 3 weeks ago) by blueness
Branch: MAIN
Version bumps

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

  ViewVC Help
Powered by ViewVC 1.1.20