Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/cpuminer-opt/
Date: Wed, 15 Mar 2023 19:19:28
Message-Id: 1678907961.ff05983ef3aaf971ae4252cd2a8ab3c178ddeb6c.candrews@gentoo
1 commit: ff05983ef3aaf971ae4252cd2a8ab3c178ddeb6c
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 19:18:55 2023 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 15 19:19:21 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff05983e
7
8 net-p2p/cpuminer-opt: add 3.21.5
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.5.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 9cc15dc61158..774563c7e36f 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.3.tar.gz 1796472 BLAKE2B cbbe7e4c93daefab6264c6d73b25e292c23edcc86d58ae6e139a5a6e2e6f354576d3264bc16b13449caa3c05422fb69fa742a990ca71dda1baaa76aa66095118 SHA512 c70e823d371158022733fa5354cf8b58f83b2588368d350b5707baab1b23ef8d5174ff5664444818659c44a97e57bf5cc8b991ab2b5307161eeca4acb7950a9b
22 +DIST cpuminer-opt-3.21.5.tar.gz 1795555 BLAKE2B 835b799334445c8a0b6a531b6a270f0b3e6b2f34c9f6002e08560c57eb3beefbd41ab322fd42c6a796bf295bed2d8e182a8999b771133ae555ac335039965bfa SHA512 e5aed1e9f5e181c3df76669f8c3479608ae355b5b5fd33ea1fb6c7b8338826c7a853505f975b95ce82697ed5d04b7d193c80a13a94d26e9ae7e9a42b3fc15403
23
24 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.21.5.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.21.5.ebuild
25 new file mode 100644
26 index 000000000000..dd862b295bd0
27 --- /dev/null
28 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.21.5.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 +}