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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 30 11:15:28 2013 UTC (10 months, 1 week ago) by blueness
Branch: MAIN
Changes since 1.1: +2 -2 lines
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.4.ebuild,v 1.1 2013/08/03 16:22: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 scrypt +udev unicode 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 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 x6500? (
40 virtual/libusb:1
41 )
42 ztex? (
43 virtual/libusb:1
44 )
45 "
46 RDEPEND="${DEPEND}
47 opencl? (
48 virtual/opencl
49 )
50 "
51 DEPEND="${DEPEND}
52 virtual/pkgconfig
53 >=dev-libs/uthash-1.9.2
54 sys-apps/sed
55 cpumining? (
56 amd64? (
57 >=dev-lang/yasm-1.0.1
58 )
59 x86? (
60 >=dev-lang/yasm-1.0.1
61 )
62 )
63 "
64
65 src_configure() {
66 local CFLAGS="${CFLAGS}"
67 local with_curses
68 use hardened && CFLAGS="${CFLAGS} -nopie"
69
70 if use ncurses; then
71 if use unicode; then
72 with_curses='--with-curses=ncursesw'
73 else
74 with_curses='--with-curses=ncurses'
75 fi
76 fi
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 $with_curses
92 $(use_with udev libudev) \
93 $(use_with lm_sensors sensors) \
94 $(use_enable x6500) \
95 $(use_enable ztex)
96 }
97
98 src_install() {
99 emake install DESTDIR="$D"
100 if ! use examples; then
101 rm -r "${D}/usr/share/doc/${PF}/rpc-examples"
102 fi
103 }

  ViewVC Help
Powered by ViewVC 1.1.20