1 |
commit: aab6b021890aeb65c0e35543b53bb44c5312450e |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 5 01:16:05 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 5 01:24:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aab6b021 |
7 |
|
8 |
net-misc/cgminer: version bump to 4.10.0 |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
net-misc/cgminer/Manifest | 1 + |
13 |
net-misc/cgminer/cgminer-4.10.0.ebuild | 88 ++++++++++++++++++++++++++++++++++ |
14 |
net-misc/cgminer/metadata.xml | 2 + |
15 |
3 files changed, 91 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/cgminer/Manifest b/net-misc/cgminer/Manifest |
18 |
index 917562c..82ab8a1 100644 |
19 |
--- a/net-misc/cgminer/Manifest |
20 |
+++ b/net-misc/cgminer/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST cgminer-4.10.0.tar.bz2 1306225 SHA256 debd49291f8335b48496896dc28a43f941d1c981525950497acc89d0d5fc1e84 SHA512 ed39bffa51715756875c101f4aaf984cab566fc1c8b657f6da37d0cdf921faee752c3efadf97c98ca6e749175457fbc2c37e9332cd26d2ff1675752250ac21db WHIRLPOOL 846af94146146809c6d7e150dc0aa26388a9a52f1ec91e4b26fd0191b426db0fa42229a896c65b566147283c97af243f51f9b452f1bbf535a04ab507d6b3195c |
23 |
DIST cgminer-4.7.0.tar.bz2 1534316 SHA256 604c5e1998e8c7319b3d7b69297ce5d45d47eb0eba9be0c037138ef73cd3749b SHA512 3d2450cab3ad6c455814db4420ce464e06dc910fec0e0be38a626193fbf46e5211bc2f8f2f6bb14daea0aa82622031cc5f44db9aee414236f7ac74cd7d95e847 WHIRLPOOL dc2beab3cb2422371190ed505c615eab24a846301527f428b107ca54f3de69c27905c4c7d1f9ab20af0c9f531aab6059ec7bf8570b1eb2b9439ac77e74a31e48 |
24 |
DIST cgminer-4.8.0.tar.bz2 1538552 SHA256 172409212dc3cb38260c9dfa4b142f989a32781dc3554a134516451a84bee137 SHA512 fdd43047a0e4c58778fa7ddd95e7521514e4572082cdb49eb802628a7d4390873576a4552d891fefc0b28043f0d15ed229d59287d75f05d5e0ac0e0a55f60d8a WHIRLPOOL 0eae3c8a8159f10f0a211ba24a9b8fa91f7f5aa2b4d6c56cdc4c10f22d69a464c86877afbe73fbed223a850e6dd9b0a45cd175c4ee24c9483ca4899032553078 |
25 |
DIST cgminer-4.9.0.tar.bz2 1547040 SHA256 67d5016bba0deb6fe432765fd5e10a4679785dc8d352d361af99150fcc3408cf SHA512 29fb31c75beca5d5a4e5c69f8448cea0640c1764561c3dbc553beb97510fda3e6529a935becbd40696f9a529575f53991a8cb704b8ba283a63496430f1d794ca WHIRLPOOL 7bdd5f5697d10acad1f026c4a392913e2d791f694e5c37732f9cf4dc037ad71d2e062b900376bfea4acfc78cf954adda0428785ac6476ee787e866a67108cf98 |
26 |
|
27 |
diff --git a/net-misc/cgminer/cgminer-4.10.0.ebuild b/net-misc/cgminer/cgminer-4.10.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..b7ab0e1 |
30 |
--- /dev/null |
31 |
+++ b/net-misc/cgminer/cgminer-4.10.0.ebuild |
32 |
@@ -0,0 +1,88 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit eutils flag-o-matic |
40 |
+ |
41 |
+DESCRIPTION="Bitcoin CPU/GPU/FPGA/ASIC miner in C" |
42 |
+HOMEPAGE="http://bitcointalk.org/?topic=28402.msg357369 https://github.com/ckolivas/cgminer" |
43 |
+SRC_URI="http://ck.kolivas.org/apps/cgminer/${P}.tar.bz2" |
44 |
+#SRC_URI="http://ck.kolivas.org/apps/cgminer/4.5/${P}.tar.bz2" |
45 |
+ |
46 |
+LICENSE="GPL-3" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~x86" |
49 |
+ |
50 |
+HARDWARE="ants1 ants2 ants3 avalon avalon2 avalon4 avalon7 avalon-miner bab bflsc bitforce bitfury bitmine_A1 blockerupter cointerra drillbit hashfast hashratio icarus klondike knc minion modminer sp10 sp30" |
51 |
+IUSE="doc examples udev hardened ncurses ${HARDWARE}" |
52 |
+ |
53 |
+REQUIRED_USE="|| ( ${HARDWARE} )" |
54 |
+ |
55 |
+RDEPEND="net-misc/curl |
56 |
+ >=dev-libs/jansson-2.6 |
57 |
+ virtual/libusb:1[udev] |
58 |
+ ncurses? ( sys-libs/ncurses:0= ) |
59 |
+ udev? ( virtual/libudev )" |
60 |
+DEPEND="virtual/pkgconfig |
61 |
+ ${RDEPEND}" |
62 |
+ |
63 |
+src_configure() { |
64 |
+ use hardened && append-cflags "-nopie" |
65 |
+ |
66 |
+ # PKG_CHECK_MODULES needs PKG_CONFIG for --with-system-jansson. |
67 |
+ export PKG_CONFIG=/usr/bin/pkg-config |
68 |
+ econf $(use_with ncurses curses) \ |
69 |
+ $(use_enable ants1) \ |
70 |
+ $(use_enable ants2) \ |
71 |
+ $(use_enable ants3) \ |
72 |
+ $(use_enable avalon) \ |
73 |
+ $(use_enable avalon2) \ |
74 |
+ $(use_enable avalon4) \ |
75 |
+ $(use_enable avalon7) \ |
76 |
+ $(use_enable avalon-miner) \ |
77 |
+ $(use_enable bab) \ |
78 |
+ $(use_enable bitmine_A1) \ |
79 |
+ $(use_enable bflsc) \ |
80 |
+ $(use_enable bitforce) \ |
81 |
+ $(use_enable bitfury) \ |
82 |
+ $(use_enable blockerupter) \ |
83 |
+ $(use_enable cointerra) \ |
84 |
+ $(use_enable drillbit) \ |
85 |
+ $(use_enable hashfast) \ |
86 |
+ $(use_enable hashratio) \ |
87 |
+ $(use_enable icarus) \ |
88 |
+ $(use_enable klondike) \ |
89 |
+ $(use_enable knc) \ |
90 |
+ $(use_enable minion) \ |
91 |
+ $(use_enable modminer) \ |
92 |
+ $(use_enable sp10) \ |
93 |
+ $(use_enable sp30) \ |
94 |
+ $(use_enable udev) \ |
95 |
+ --disable-forcecombo \ |
96 |
+ --with-system-libusb \ |
97 |
+ --with-system-jansson |
98 |
+ # sanitize directories (is this still needed?) |
99 |
+ sed -i 's~^\(\#define CGMINER_PREFIX \).*$~\1"'"${EPREFIX}/usr/lib/cgminer"'"~' config.h |
100 |
+} |
101 |
+ |
102 |
+src_install() { # How about using some make install? |
103 |
+ dobin cgminer |
104 |
+ |
105 |
+ if use udev; then |
106 |
+ insinto /lib/udev/rules.d |
107 |
+ use udev && doins 01-cgminer.rules |
108 |
+ fi |
109 |
+ |
110 |
+ if use doc; then |
111 |
+ dodoc AUTHORS NEWS README API-README |
112 |
+ use icarus || use bitforce || use modminer && dodoc FPGA-README |
113 |
+ use avalon || use bflsc && dodoc ASIC-README |
114 |
+ fi |
115 |
+ |
116 |
+ if use examples; then |
117 |
+ docinto examples |
118 |
+ dodoc api-example.php miner.php API.java api-example.c example.conf |
119 |
+ fi |
120 |
+} |
121 |
|
122 |
diff --git a/net-misc/cgminer/metadata.xml b/net-misc/cgminer/metadata.xml |
123 |
index 63b6b39..f228aa2 100644 |
124 |
--- a/net-misc/cgminer/metadata.xml |
125 |
+++ b/net-misc/cgminer/metadata.xml |
126 |
@@ -20,6 +20,8 @@ |
127 |
<flag name="avalon">Enable support for Avalon ASICs</flag> |
128 |
<flag name="avalon2">Enable support for Avalon2 ASICs</flag> |
129 |
<flag name="avalon4">Enable support for Avalon4 ASICs</flag> |
130 |
+ <flag name="avalon7">Enable support for Avalon7 ASICs</flag> |
131 |
+ <flag name="avalon-miner">Enable support for Avalon miner ASICs</flag> |
132 |
<flag name="bab">Enable support for BlackArrow Bitfury</flag> |
133 |
<flag name="bflsc">Enable support for BFL ASICs</flag> |
134 |
<flag name="bitforce">Enable support for mining with ButterFly Labs BitFORCE FPGAs</flag> |