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

Contents of /net-misc/bfgminer/bfgminer-3.3.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20