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