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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jun 12 09:31:45 2015 UTC (3 years, 5 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Version bump.

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

1 # Copyright 1999-2015 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.9.1.ebuild,v 1.1 2015/02/03 12:22:57 blueness Exp $
4
5 EAPI=5
6
7 inherit autotools eutils 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.5/${P}.tar.bz2"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~x86"
17
18 HARDWARE="ants1 ants2 ants3 avalon avalon2 avalon4 bab bflsc bitforce bitfury bitmine_A1 blockerupter cointerra drillbit hashfast hashratio icarus klondike knc minion modminer sp10 sp30"
19 IUSE="doc examples udev hardened ncurses ${HARDWARE}"
20
21 REQUIRED_USE="|| ( ${HARDWARE} )"
22
23 RDEPEND="net-misc/curl
24 >=dev-libs/jansson-2.6
25 virtual/libusb:1[udev]
26 ncurses? ( sys-libs/ncurses )
27 udev? ( virtual/libudev )"
28 DEPEND="virtual/pkgconfig
29 ${RDEPEND}"
30
31 src_configure() {
32 use hardened && append-cflags "-nopie"
33
34 # PKG_CHECK_MODULES needs PKG_CONFIG for --with-system-jansson.
35 export PKG_CONFIG=/usr/bin/pkg-config
36 econf $(use_with ncurses curses) \
37 $(use_enable ants1) \
38 $(use_enable ants2) \
39 $(use_enable ants3) \
40 $(use_enable avalon) \
41 $(use_enable avalon2) \
42 $(use_enable avalon4) \
43 $(use_enable bab) \
44 $(use_enable bitmine_A1) \
45 $(use_enable bflsc) \
46 $(use_enable bitforce) \
47 $(use_enable bitfury) \
48 $(use_enable blockerupter) \
49 $(use_enable cointerra) \
50 $(use_enable drillbit) \
51 $(use_enable hashfast) \
52 $(use_enable hashratio) \
53 $(use_enable icarus) \
54 $(use_enable klondike) \
55 $(use_enable knc) \
56 $(use_enable minion) \
57 $(use_enable modminer) \
58 $(use_enable sp10) \
59 $(use_enable sp30) \
60 $(use_enable udev) \
61 --disable-forcecombo \
62 --with-system-libusb \
63 --with-system-jansson
64 # sanitize directories (is this still needed?)
65 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
66 }
67
68 src_install() { # How about using some make install?
69 dobin cgminer
70
71 if use udev; then
72 insinto /lib/udev/rules.d
73 use udev && doins 01-cgminer.rules
74 fi
75
76 if use doc; then
77 dodoc AUTHORS NEWS README API-README
78 use icarus || use bitforce || use modminer && dodoc FPGA-README
79 use avalon || use bflsc && dodoc ASIC-README
80 fi
81
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