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

Contents of /net-misc/bfgminer/bfgminer-3.1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jun 26 17:09:41 2013 UTC (17 months ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
Version bump, restore arm ppc ppc64 keywords

(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.0-r1.ebuild,v 1.1 2013/06/18 11:36:58 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_prepare() {
65 epatch "${FILESDIR}/3.1.0-Bugfix-opencl-Build-fpgautils-even-if-OpenCL-is-the-.patch"
66 epatch "${FILESDIR}/3.1.0-Bugfix-opencl-Add-missing-include-for-fpgautils.h-ne.patch"
67 NOSUBMODULES=1 ./autogen.sh
68 }
69
70 src_configure() {
71 local CFLAGS="${CFLAGS}"
72 use hardened && CFLAGS="${CFLAGS} -nopie"
73
74 CFLAGS="${CFLAGS}" \
75 econf \
76 --docdir="/usr/share/doc/${PF}" \
77 $(use_enable adl) \
78 $(use_enable avalon) \
79 $(use_enable bitforce) \
80 $(use_enable cpumining) \
81 $(use_enable icarus) \
82 $(use_enable modminer) \
83 $(use_with ncurses curses) \
84 $(use_enable opencl) \
85 $(use_enable scrypt) \
86 --with-system-libblkmaker \
87 $(use_with udev libudev) \
88 $(use_with lm_sensors sensors) \
89 $(use_enable x6500) \
90 $(use_enable ztex)
91 }
92
93 src_install() {
94 emake install DESTDIR="$D"
95 if ! use avalon; then
96 rm "${D}/usr/share/doc/${PF}/README.ASIC"
97 fi
98 if ! { use modminer || use bitforce || use icarus || use ztex; }; then
99 rm "${D}/usr/share/doc/${PF}/README.FPGA"
100 fi
101 if ! use opencl; then
102 rm "${D}/usr/share/doc/${PF}/README.GPU"
103 fi
104 if ! use scrypt; then
105 rm "${D}/usr/share/doc/${PF}/README.scrypt"
106 fi
107 if ! use examples; then
108 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
109 fi
110 }

  ViewVC Help
Powered by ViewVC 1.1.20