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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jul 16 10:19:42 2013 UTC (11 months, 4 weeks ago) by blueness
Branch: MAIN
Version bump

(Portage version: 2.1.12.2/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.1.2.ebuild,v 1.2 2013/07/09 13:30:10 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 scrypt +udev x6500 ztex"
18 REQUIRED_USE="
19 || ( avalon bitforce cpumining icarus modminer opencl x6500 ztex )
20 adl? ( opencl )
21 lm_sensors? ( opencl )
22 scrypt? ( || ( cpumining opencl ) )
23 "
24
25 DEPEND="
26 net-misc/curl
27 ncurses? (
28 sys-libs/ncurses
29 )
30 >=dev-libs/jansson-2
31 net-libs/libblkmaker
32 udev? (
33 virtual/udev
34 )
35 lm_sensors? (
36 sys-apps/lm_sensors
37 )
38 x6500? (
39 virtual/libusb:1
40 )
41 ztex? (
42 virtual/libusb:1
43 )
44 "
45 RDEPEND="${DEPEND}
46 opencl? (
47 virtual/opencl
48 )
49 "
50 DEPEND="${DEPEND}
51 virtual/pkgconfig
52 >=dev-libs/uthash-1.9.2
53 sys-apps/sed
54 cpumining? (
55 amd64? (
56 >=dev-lang/yasm-1.0.1
57 )
58 x86? (
59 >=dev-lang/yasm-1.0.1
60 )
61 )
62 "
63
64 src_configure() {
65 local CFLAGS="${CFLAGS}"
66 use hardened && CFLAGS="${CFLAGS} -nopie"
67
68 CFLAGS="${CFLAGS}" \
69 econf \
70 --docdir="/usr/share/doc/${PF}" \
71 $(use_enable adl) \
72 $(use_enable avalon) \
73 $(use_enable bitforce) \
74 $(use_enable cpumining) \
75 $(use_enable icarus) \
76 $(use_enable modminer) \
77 $(use_with ncurses curses) \
78 $(use_enable opencl) \
79 $(use_enable scrypt) \
80 --with-system-libblkmaker \
81 $(use_with udev libudev) \
82 $(use_with lm_sensors sensors) \
83 $(use_enable x6500) \
84 $(use_enable ztex)
85 }
86
87 src_install() {
88 emake install DESTDIR="$D"
89 if ! use examples; then
90 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
91 fi
92 }

  ViewVC Help
Powered by ViewVC 1.1.20