/[gentoo-x86]/net-misc/cgminer/cgminer-4.2.2.ebuild
Gentoo

Contents of /net-misc/cgminer/cgminer-4.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Apr 19 11:47:14 2014 UTC (4 years, 7 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump

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

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-4.2.2.ebuild,v 1.2 2014/04/04 14:56:07 blueness Exp $
4
5 EAPI=5
6
7 inherit autotools flag-o-matic
8
9 DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
10 HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
11 #SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
12 SRC_URI="http://ck.kolivas.org/apps/cgminer/4.2/${P}.tar.bz2"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~x86"
17
18 HARDWARE="ants1 avalon avalon2 bab bitmine_A1 bflsc bitforce bitfury cointerra drillbit hashfast icarus klondike knc minion modminer"
19 IUSE="doc examples udev hardened ncurses ${HARDWARE}"
20
21 REQUIRED_USE="|| ( ${HARDWARE} )"
22
23 RDEPEND="net-misc/curl
24 dev-libs/jansson
25 ncurses? ( sys-libs/ncurses )
26 avalon? ( virtual/libusb:1 )
27 bflsc? ( virtual/libusb:1 )
28 bitforce? ( virtual/libusb:1 )
29 bitfury? ( virtual/libusb:1 )
30 cointerra? ( virtual/libusb:1 )
31 drillbit? ( virtual/libusb:1 )
32 hashfast? ( virtual/libusb:1 )
33 icarus? ( virtual/libusb:1 )
34 klondike? ( virtual/libusb:1 )
35 modminer? ( virtual/libusb:1 )"
36 DEPEND="virtual/pkgconfig
37 ${RDEPEND}"
38
39 src_prepare() {
40 eautoreconf
41 }
42
43 src_configure() {
44 use hardened && append-cflags "-nopie"
45
46 econf $(use_with ncurses curses) \
47 $(use_enable ants1) \
48 $(use_enable avalon) \
49 $(use_enable avalon2) \
50 $(use_enable bab) \
51 $(use_enable bitmine_A1) \
52 $(use_enable bflsc) \
53 $(use_enable bitforce) \
54 $(use_enable bitfury) \
55 $(use_enable cointerra) \
56 $(use_enable drillbit) \
57 $(use_enable hashfast) \
58 $(use_enable icarus) \
59 $(use_enable klondike) \
60 $(use_enable knc) \
61 $(use_enable minion) \
62 $(use_enable modminer)
63 # sanitize directories (is this still needed?)
64 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
65 }
66
67 src_install() { # How about using some make install?
68 dobin cgminer
69 insinto /lib/udev/rules.d
70 use udev && doins 01-cgminer.rules
71 if use doc; then
72 dodoc AUTHORS NEWS README API-README
73 use icarus || use bitforce || use modminer && dodoc FPGA-README
74 use avalon || use bflsc && dodoc ASIC-README
75 fi
76
77 if use modminer; then
78 insinto /usr/lib/cgminer/modminer
79 doins bitstreams/*.ncd
80 dodoc bitstreams/COPYING_fpgaminer
81 fi
82 if use examples; then
83 docinto examples
84 dodoc api-example.php miner.php API.java api-example.c example.conf
85 fi
86 }

  ViewVC Help
Powered by ViewVC 1.1.20