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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue Jul 9 13:30:10 2013 UTC (4 years, 10 months ago) by blueness
Branch: MAIN
Changes since 1.1: +7 -17 lines
Fix dependencies

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 blueness 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/bfgminer/bfgminer-3.1.1.ebuild,v 1.1 2013/06/26 17:09:41 blueness Exp $
4 blueness 1.1
5 blueness 1.2 EAPI="4"
6 blueness 1.1
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 blueness 1.2 REQUIRED_USE="
19 blueness 1.1 || ( avalon bitforce cpumining icarus modminer opencl x6500 ztex )
20     adl? ( opencl )
21     lm_sensors? ( opencl )
22     scrypt? ( || ( cpumining opencl ) )
23 blueness 1.2 "
24 blueness 1.1
25 blueness 1.2 DEPEND="
26 blueness 1.1 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 blueness 1.2 "
45 blueness 1.1 RDEPEND="${DEPEND}
46     opencl? (
47 blueness 1.2 virtual/opencl
48 blueness 1.1 )
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