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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 1 23:46:40 2014 UTC (5 years, 9 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bumps, remove older, bring in line with bitcoin overlay

(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.5.ebuild,v 1.1 2013/11/07 17:49:02 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 || (
52 virtual/opencl
53 virtual/opencl-sdk
54 dev-util/ati-stream-sdk
55 dev-util/ati-stream-sdk-bin
56 dev-util/amdstream
57 dev-util/amd-app-sdk
58 dev-util/amd-app-sdk-bin
59 dev-util/nvidia-cuda-sdk[opencl]
60 dev-util/intel-opencl-sdk
61 )
62 )
63 "
64 DEPEND="${DEPEND}
65 virtual/pkgconfig
66 >=dev-libs/uthash-1.9.2
67 sys-apps/sed
68 cpumining? (
69 amd64? (
70 >=dev-lang/yasm-1.0.1
71 )
72 x86? (
73 >=dev-lang/yasm-1.0.1
74 )
75 )
76 "
77
78 src_configure() {
79 local CFLAGS="${CFLAGS}"
80 local with_curses
81 use hardened && CFLAGS="${CFLAGS} -nopie"
82
83 if use ncurses; then
84 if use unicode; then
85 with_curses='--with-curses=ncursesw'
86 else
87 with_curses='--with-curses=ncurses'
88 fi
89 else
90 with_curses='--without-curses'
91 fi
92
93 CFLAGS="${CFLAGS}" \
94 econf \
95 --docdir="/usr/share/doc/${PF}" \
96 $(use_enable adl) \
97 $(use_enable avalon) \
98 $(use_enable bitforce) \
99 $(use_enable cpumining) \
100 $(use_enable icarus) \
101 $(use_enable modminer) \
102 $(use_enable opencl) \
103 $(use_enable scrypt) \
104 --with-system-libblkmaker \
105 $with_curses \
106 $(use_with udev libudev) \
107 $(use_with lm_sensors sensors) \
108 $(use_with proxy libmicrohttpd) \
109 $(use_enable x6500) \
110 $(use_enable ztex)
111 }
112
113 src_install() {
114 emake install DESTDIR="$D"
115 if ! use examples; then
116 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
117 fi
118 }

  ViewVC Help
Powered by ViewVC 1.1.20