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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Nov 26 20:40:21 2014 UTC (5 years ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove older versions

(Portage version: 2.2.8-r2/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.5.0.ebuild,v 1.1 2014/07/30 10:39:26 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 avalon avalon2 bab bitmine_A1 bflsc bitforce bitfury cointerra drillbit hashfast hashratio icarus klondike knc minion modminer spondoolies"
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 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 hashratio? ( virtual/libusb:1 )
34 icarus? ( virtual/libusb:1 )
35 klondike? ( virtual/libusb:1 )
36 modminer? ( virtual/libusb:1 )
37 spondoolies? ( virtual/libusb:1 )"
38 DEPEND="virtual/pkgconfig
39 ${RDEPEND}"
40
41 src_prepare() {
42 epatch "${FILESDIR}"/${PN}-4.4.2-system-jansson.patch
43 eautoreconf
44 }
45
46 src_configure() {
47 use hardened && append-cflags "-nopie"
48
49 econf $(use_with ncurses curses) \
50 $(use_enable ants1) \
51 $(use_enable ants2) \
52 $(use_enable avalon) \
53 $(use_enable avalon2) \
54 $(use_enable bab) \
55 $(use_enable bitmine_A1) \
56 $(use_enable bflsc) \
57 $(use_enable bitforce) \
58 $(use_enable bitfury) \
59 $(use_enable cointerra) \
60 $(use_enable drillbit) \
61 $(use_enable hashfast) \
62 $(use_enable hashratio) \
63 $(use_enable icarus) \
64 $(use_enable klondike) \
65 $(use_enable knc) \
66 $(use_enable minion) \
67 $(use_enable modminer) \
68 $(use_enable spondoolies) \
69 --with-system-libusb
70 # sanitize directories (is this still needed?)
71 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
72 }
73
74 src_install() { # How about using some make install?
75 dobin cgminer
76
77 insinto /lib/udev/rules.d
78 use udev && doins 01-cgminer.rules
79
80 if use doc; then
81 dodoc AUTHORS NEWS README API-README
82 use icarus || use bitforce || use modminer && dodoc FPGA-README
83 use avalon || use bflsc && dodoc ASIC-README
84 fi
85
86 if use examples; then
87 docinto examples
88 dodoc api-example.php miner.php API.java api-example.c example.conf
89 fi
90 }

  ViewVC Help
Powered by ViewVC 1.1.20