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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Aug 1 12:54:03 2014 UTC (4 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove older versions due to CVE-2014-4503, bug #517948

(Portage version: 2.2.8-r1/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.12.3.ebuild,v 1.1 2014/02/08 23:07:52 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.12/${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 minion modminer"
19
20 REQUIRED_USE="|| ( avalon bflsc bitforce bitfury drillbit icarus klondike minion 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 minion) \
50 $(use_enable modminer)
51 # sanitize directories (is this still needed?)
52 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
53 }
54
55 src_install() { # How about using some make install?
56 dobin cgminer
57 insinto /lib/udev/rules.d
58 use udev && doins 01-cgminer.rules
59 if use doc; then
60 dodoc AUTHORS NEWS README API-README
61 use icarus || use bitforce || use modminer && dodoc FPGA-README
62 use avalon || use bflsc && dodoc ASIC-README
63 fi
64
65 if use modminer; then
66 insinto /usr/lib/cgminer/modminer
67 doins bitstreams/*.ncd
68 dodoc bitstreams/COPYING_fpgaminer
69 fi
70 if use examples; then
71 docinto examples
72 dodoc api-example.php miner.php API.java api-example.c example.conf
73 fi
74 }

  ViewVC Help
Powered by ViewVC 1.1.20