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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20