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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Mon Mar 10 13:31:41 2014 UTC (5 years, 10 months ago) by blueness
Branch: MAIN
Changes since 1.1: +3 -3 lines
Version bump

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

1 blueness 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-4.0.1.ebuild,v 1.1 2014/02/28 13:41:15 blueness Exp $
4 blueness 1.1
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 blueness 1.2 #SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
12     SRC_URI="http://ck.kolivas.org/apps/cgminer/4.0/${P}.tar.bz2"
13 blueness 1.1
14     LICENSE="GPL-3"
15     SLOT="0"
16     KEYWORDS="~amd64 ~arm ~x86"
17    
18     HARDWARE="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 avalon) \
48     $(use_enable avalon2) \
49     $(use_enable bab) \
50     $(use_enable bitmine_A1) \
51     $(use_enable bflsc) \
52     $(use_enable bitforce) \
53     $(use_enable bitfury) \
54     $(use_enable cointerra) \
55     $(use_enable drillbit) \
56     $(use_enable hashfast) \
57     $(use_enable icarus) \
58     $(use_enable klondike) \
59     $(use_enable knc) \
60     $(use_enable minion) \
61     $(use_enable modminer)
62     # sanitize directories (is this still needed?)
63     sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
64     }
65    
66     src_install() { # How about using some make install?
67     dobin cgminer
68     insinto /lib/udev/rules.d
69     use udev && doins 01-cgminer.rules
70     if use doc; then
71     dodoc AUTHORS NEWS README API-README
72     use icarus || use bitforce || use modminer && dodoc FPGA-README
73     use avalon || use bflsc && dodoc ASIC-README
74     fi
75    
76     if use modminer; then
77     insinto /usr/lib/cgminer/modminer
78     doins bitstreams/*.ncd
79     dodoc bitstreams/COPYING_fpgaminer
80     fi
81     if use examples; then
82     docinto examples
83     dodoc api-example.php miner.php API.java api-example.c example.conf
84     fi
85     }

  ViewVC Help
Powered by ViewVC 1.1.20