/[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.1 - (hide annotations) (download)
Wed Jun 26 17:09:41 2013 UTC (5 years, 2 months ago) by blueness
Branch: MAIN
Version bump, restore arm ppc ppc64 keywords

(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     # $Header: $
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     || (
48     virtual/opencl
49     virtual/opencl-sdk
50     dev-util/ati-stream-sdk
51     dev-util/ati-stream-sdk-bin
52     dev-util/amdstream
53     dev-util/amd-app-sdk
54     dev-util/amd-app-sdk-bin
55     dev-util/nvidia-cuda-sdk[opencl]
56     dev-util/intel-opencl-sdk
57     )
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     use hardened && CFLAGS="${CFLAGS} -nopie"
77    
78     CFLAGS="${CFLAGS}" \
79     econf \
80     --docdir="/usr/share/doc/${PF}" \
81     $(use_enable adl) \
82     $(use_enable avalon) \
83     $(use_enable bitforce) \
84     $(use_enable cpumining) \
85     $(use_enable icarus) \
86     $(use_enable modminer) \
87     $(use_with ncurses curses) \
88     $(use_enable opencl) \
89     $(use_enable scrypt) \
90     --with-system-libblkmaker \
91     $(use_with udev libudev) \
92     $(use_with lm_sensors sensors) \
93     $(use_enable x6500) \
94     $(use_enable ztex)
95     }
96    
97     src_install() {
98     emake install DESTDIR="$D"
99     if ! use examples; then
100     rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
101     fi
102     }

  ViewVC Help
Powered by ViewVC 1.1.20