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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Dec 7 19:01:36 2013 UTC (4 years, 11 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Add udev rule, bug #493234.  Remove older.

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

  ViewVC Help
Powered by ViewVC 1.1.20