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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 24 19:09:06 2014 UTC (5 years, 8 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove older unstable verions

(Portage version: 2.2.7/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-3.9.0.ebuild,v 1.2 2014/01/08 23:34:38 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="http://ck.kolivas.org/apps/cgminer/3.9/${P}.tar.bz2"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~arm ~x86"
17 IUSE="doc examples udev hardened ncurses
18 avalon bflsc bitforce bitfury drillbit icarus klondike modminer"
19
20 REQUIRED_USE="|| ( avalon bflsc bitforce bitfury drillbit icarus klondike modminer )"
21
22 RDEPEND="net-misc/curl
23 dev-libs/jansson
24 ncurses? ( sys-libs/ncurses )
25 avalon? ( virtual/libusb:1 )
26 bflsc? ( virtual/libusb:1 )
27 bitforce? ( virtual/libusb:1 )
28 bitfury? ( virtual/libusb:1 )
29 icarus? ( virtual/libusb:1 )
30 modminer? ( virtual/libusb:1 )"
31 DEPEND="virtual/pkgconfig
32 ${RDEPEND}"
33
34 src_prepare() {
35 eautoreconf
36 }
37
38 src_configure() {
39 use hardened && append-cflags "-nopie"
40
41 econf $(use_with ncurses curses) \
42 $(use_enable avalon) \
43 $(use_enable bflsc) \
44 $(use_enable bitforce) \
45 $(use_enable bitfury) \
46 $(use_enable drillbit) \
47 $(use_enable icarus) \
48 $(use_enable klondike) \
49 $(use_enable modminer)
50 # sanitize directories (is this still needed?)
51 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
52 }
53
54 src_install() { # How about using some make install?
55 dobin cgminer
56 insinto /lib/udev/rules.d
57 use udev && doins 01-cgminer.rules
58 if use doc; then
59 dodoc AUTHORS NEWS README API-README
60 use icarus || use bitforce || use modminer && dodoc FPGA-README
61 use avalon || use bflsc && dodoc ASIC-README
62 fi
63
64 if use modminer; then
65 insinto /usr/lib/cgminer/modminer
66 doins bitstreams/*.ncd
67 dodoc bitstreams/COPYING_fpgaminer
68 fi
69 if use examples; then
70 docinto examples
71 dodoc api-example.php miner.php API.java api-example.c example.conf
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20