1 |
commit: e37e952488da9690b9e9a67a4565b6611b756c4d |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 17:51:56 2023 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 17:52:25 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e37e9524 |
7 |
|
8 |
net-p2p/cpuminer-opt: add 3.21.2 |
9 |
|
10 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
11 |
|
12 |
net-p2p/cpuminer-opt/Manifest | 1 + |
13 |
net-p2p/cpuminer-opt/cpuminer-opt-3.21.2.ebuild | 49 +++++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest |
17 |
index e940c2c5b744..3424e8099806 100644 |
18 |
--- a/net-p2p/cpuminer-opt/Manifest |
19 |
+++ b/net-p2p/cpuminer-opt/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cpuminer-opt-3.21.1.tar.gz 1791951 BLAKE2B 15137a43082f5538ac058cf5f8cf6834cd6452b3c397ab61bf2164c8859ea88de78ae73cc5533a94c050db25a2ccd777b224afd362c406e6458463c990abd259 SHA512 89f2fdbdefb27c6fbc45dab41eee7592378b0a518ef91977dabb812658b9bbdad01f5875e37cbee62fa25ee45f943f55092d89b2edd0c8196dc1566d758d3948 |
22 |
+DIST cpuminer-opt-3.21.2.tar.gz 1795148 BLAKE2B 8b47ee2cac3e3e6d991d99a5ff4d8e6a495629b0e9152c9a0fe8521c18b6ea113742c5e19afbd73b2bd6162145ebdd7087d49335540e8f8b4cfa8a6fadb7a096 SHA512 633a3d34bbf9f5ebf60d419f2bd44a0a0b00788a14fc6df9b835eee8880f3e3c47bb94d85c8ef21d64a6c2b9445ce67c28410b6b9bde282375597f616107a93f |
23 |
|
24 |
diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.21.2.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.21.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..dd862b295bd0 |
27 |
--- /dev/null |
28 |
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.21.2.ebuild |
29 |
@@ -0,0 +1,49 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools flag-o-matic systemd |
36 |
+ |
37 |
+DESCRIPTION="Optimized multi algo CPU miner" |
38 |
+HOMEPAGE="https://github.com/JayDDee/cpuminer-opt" |
39 |
+IUSE="cpu_flags_x86_sse2 curl" |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+REQUIRED_USE="cpu_flags_x86_sse2" |
43 |
+DEPEND=" |
44 |
+ dev-libs/gmp:= |
45 |
+ dev-libs/jansson:= |
46 |
+ >=net-misc/curl-7.15[ssl] |
47 |
+ dev-libs/openssl:0= |
48 |
+" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+if [[ ${PV} == "9999" ]] ; then |
51 |
+ SRC_URI="" |
52 |
+ EGIT_REPO_URI="https://github.com/JayDDee/${PN}.git" |
53 |
+ inherit git-r3 |
54 |
+else |
55 |
+ KEYWORDS="~amd64" |
56 |
+ SRC_URI="https://github.com/JayDDee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
57 |
+fi |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ eautoreconf |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ append-ldflags -Wl,-z,noexecstack |
66 |
+ econf --with-crypto --with-curl |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ default |
71 |
+ systemd_dounit "${FILESDIR}"/${PN}.service |
72 |
+ insinto "/etc/${PN}" |
73 |
+ doins cpuminer-conf.json |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ ./cpuminer --cputest || die |
78 |
+} |