Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/cgminer: cgminer-4.0.1.ebuild ChangeLog cgminer-4.0.0.ebuild
Date: Fri, 28 Feb 2014 13:41:22
Message-Id: 20140228134115.6C9672004C@flycatcher.gentoo.org
1 blueness 14/02/28 13:41:15
2
3 Modified: ChangeLog
4 Added: cgminer-4.0.1.ebuild
5 Removed: cgminer-4.0.0.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.63 net-misc/cgminer/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.63&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?rev=1.63&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/ChangeLog?r1=1.62&r2=1.63
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v
21 retrieving revision 1.62
22 retrieving revision 1.63
23 diff -u -r1.62 -r1.63
24 --- ChangeLog 24 Feb 2014 00:21:41 -0000 1.62
25 +++ ChangeLog 28 Feb 2014 13:41:15 -0000 1.63
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-misc/cgminer
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v 1.62 2014/02/24 00:21:41 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/ChangeLog,v 1.63 2014/02/28 13:41:15 blueness Exp $
31 +
32 +*cgminer-4.0.1 (28 Feb 2014)
33 +
34 + 28 Feb 2014; Anthony G. Basile <blueness@g.o> +cgminer-4.0.1.ebuild,
35 + -cgminer-4.0.0.ebuild:
36 + Version bump
37
38 *cgminer-4.0.0 (24 Feb 2014)
39
40
41
42
43 1.1 net-misc/cgminer/cgminer-4.0.1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-4.0.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/cgminer/cgminer-4.0.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cgminer-4.0.1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/cgminer/cgminer-4.0.1.ebuild,v 1.1 2014/02/28 13:41:15 blueness Exp $
53
54 EAPI=5
55
56 inherit autotools flag-o-matic
57
58 DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C"
59 HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 http://github.com/ckolivas/cgminer"
60 SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2"
61 #SRC_URI="http://ck.kolivas.org/apps/cgminer/3.9/${P}.tar.bz2"
62
63 LICENSE="GPL-3"
64 SLOT="0"
65 KEYWORDS="~amd64 ~arm ~x86"
66
67 HARDWARE="avalon avalon2 bab bitmine_A1 bflsc bitforce bitfury cointerra drillbit hashfast icarus klondike knc minion modminer"
68 IUSE="doc examples udev hardened ncurses ${HARDWARE}"
69
70 REQUIRED_USE="|| ( ${HARDWARE} )"
71
72 RDEPEND="net-misc/curl
73 dev-libs/jansson
74 ncurses? ( sys-libs/ncurses )
75 avalon? ( virtual/libusb:1 )
76 bflsc? ( virtual/libusb:1 )
77 bitforce? ( virtual/libusb:1 )
78 bitfury? ( virtual/libusb:1 )
79 cointerra? ( virtual/libusb:1 )
80 drillbit? ( virtual/libusb:1 )
81 hashfast? ( virtual/libusb:1 )
82 icarus? ( virtual/libusb:1 )
83 klondike? ( virtual/libusb:1 )
84 modminer? ( virtual/libusb:1 )"
85 DEPEND="virtual/pkgconfig
86 ${RDEPEND}"
87
88 src_prepare() {
89 eautoreconf
90 }
91
92 src_configure() {
93 use hardened && append-cflags "-nopie"
94
95 econf $(use_with ncurses curses) \
96 $(use_enable avalon) \
97 $(use_enable avalon2) \
98 $(use_enable bab) \
99 $(use_enable bitmine_A1) \
100 $(use_enable bflsc) \
101 $(use_enable bitforce) \
102 $(use_enable bitfury) \
103 $(use_enable cointerra) \
104 $(use_enable drillbit) \
105 $(use_enable hashfast) \
106 $(use_enable icarus) \
107 $(use_enable klondike) \
108 $(use_enable knc) \
109 $(use_enable minion) \
110 $(use_enable modminer)
111 # sanitize directories (is this still needed?)
112 sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h
113 }
114
115 src_install() { # How about using some make install?
116 dobin cgminer
117 insinto /lib/udev/rules.d
118 use udev && doins 01-cgminer.rules
119 if use doc; then
120 dodoc AUTHORS NEWS README API-README
121 use icarus || use bitforce || use modminer && dodoc FPGA-README
122 use avalon || use bflsc && dodoc ASIC-README
123 fi
124
125 if use modminer; then
126 insinto /usr/lib/cgminer/modminer
127 doins bitstreams/*.ncd
128 dodoc bitstreams/COPYING_fpgaminer
129 fi
130 if use examples; then
131 docinto examples
132 dodoc api-example.php miner.php API.java api-example.c example.conf
133 fi
134 }