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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20