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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 2 23:15:59 2013 UTC (11 months, 3 weeks ago) by blueness
Branch: MAIN
Changes since 1.1: +3 -3 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/cgminer/cgminer-3.3.4.ebuild,v 1.1 2013/08/14 07:02:14 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="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 modminer ztex"
19
20 REQUIRED_USE="|| ( opencl avalon bflsc bitforce icarus modminer ztex )
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 ztex? ( virtual/libusb:1 )"
35 RDEPEND="${DEPEND}"
36
37 src_prepare() {
38 ln -s /usr/include/ADL/* ADL_SDK/
39 eautoreconf
40 }
41
42 src_configure() {
43 use hardened && append-cflags "-nopie"
44
45 econf $(use_with ncurses curses) \
46 $(use_enable opencl) \
47 $(use_enable adl) \
48 $(use_enable scrypt) \
49 $(use_enable avalon) \
50 $(use_enable bflsc) \
51 $(use_enable bitforce) \
52 $(use_enable icarus) \
53 $(use_enable modminer) \
54 $(use_enable ztex)
55 # sanitize directories (is this still needed?)
56 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
57 }
58
59 src_install() { # How about using some make install?
60 dobin cgminer
61 if use doc; then
62 dodoc AUTHORS NEWS README API-README
63 use opencl && dodoc GPU-README
64 use scrypt && dodoc SCRYPT-README
65 use icarus || use bitforce || use ztex || use modminer && dodoc FPGA-README
66 use avalon || use bflsc && dodoc ASIC-README
67 fi
68
69 if use modminer; then
70 insinto /usr/lib/cgminer/modminer
71 doins bitstreams/*.ncd
72 dodoc bitstreams/COPYING_fpgaminer
73 fi
74 if use opencl; then
75 insinto /usr/lib/cgminer
76 doins *.cl
77 fi
78 if use ztex; then
79 insinto /usr/lib/cgminer/ztex
80 doins bitstreams/*.bit
81 dodoc bitstreams/COPYING_ztex
82 fi
83 if use examples; then
84 docinto examples
85 dodoc api-example.php miner.php API.java api-example.c example.conf
86 fi
87 }

  ViewVC Help
Powered by ViewVC 1.1.20