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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Oct 18 17:27:29 2013 UTC (6 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump again

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

1 blueness 1.1 # Copyright 1999-2013 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-3.6.2.ebuild,v 1.1 2013/10/17 13:13:42 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     SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
12     #SRC_URI="https://github.com/ckolivas/cgminer/archive/v${PV}.tar.gz"
13    
14     LICENSE="GPL-3"
15     SLOT="0"
16     KEYWORDS="~amd64 ~x86"
17     IUSE="doc examples hardened ncurses opencl adl scrypt
18     avalon bflsc bitforce icarus klondike modminer"
19    
20     REQUIRED_USE="|| ( opencl avalon bflsc bitforce icarus klondike modminer )
21     adl? ( opencl )
22     scrypt? ( opencl )"
23    
24     DEPEND="net-misc/curl
25     dev-libs/jansson
26     adl? ( x11-libs/amd-adl-sdk )
27     ncurses? ( sys-libs/ncurses )
28     opencl? ( virtual/opencl )
29     avalon? ( virtual/libusb:1 )
30     bflsc? ( virtual/libusb:1 )
31     bitforce? ( virtual/libusb:1 )
32     icarus? ( virtual/libusb:1 )
33     modminer? ( virtual/libusb:1 )"
34     RDEPEND="${DEPEND}"
35    
36     src_prepare() {
37     ln -s /usr/include/ADL/* ADL_SDK/
38     eautoreconf
39     }
40    
41     src_configure() {
42     use hardened && append-cflags "-nopie"
43    
44     econf $(use_with ncurses curses) \
45     $(use_enable opencl) \
46     $(use_enable adl) \
47     $(use_enable scrypt) \
48     $(use_enable avalon) \
49     $(use_enable bflsc) \
50     $(use_enable bitforce) \
51     $(use_enable icarus) \
52     $(use_enable klondike) \
53     $(use_enable modminer)
54     # sanitize directories (is this still needed?)
55     sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
56     }
57    
58     src_install() { # How about using some make install?
59     dobin cgminer
60     if use doc; then
61     dodoc AUTHORS NEWS README API-README
62     use opencl && dodoc GPU-README
63     use scrypt && dodoc SCRYPT-README
64     use icarus || use bitforce || use modminer && dodoc FPGA-README
65     use avalon || use bflsc && dodoc ASIC-README
66     fi
67    
68     if use modminer; then
69     insinto /usr/lib/cgminer/modminer
70     doins bitstreams/*.ncd
71     dodoc bitstreams/COPYING_fpgaminer
72     fi
73     if use opencl; then
74     insinto /usr/lib/cgminer
75     doins *.cl
76     fi
77     if use examples; then
78     docinto examples
79     dodoc api-example.php miner.php API.java api-example.c example.conf
80     fi
81     }

  ViewVC Help
Powered by ViewVC 1.1.20