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: Thu, 24 Jun 2021 15:16:49
Message-Id: 1624547802.27f1741c077550b24bcf7df58a9ef2eaa72236fc.candrews@gentoo
1 commit: 27f1741c077550b24bcf7df58a9ef2eaa72236fc
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 24 15:15:56 2021 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 24 15:16:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f1741c
7
8 net-p2p/cpuminer-opt: 3.16.4 version bump
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
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.16.4.ebuild | 49 +++++++++++++++++++++++++
15 2 files changed, 50 insertions(+)
16
17 diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
18 index 6d3c6b02608..4bcaa3be23b 100644
19 --- a/net-p2p/cpuminer-opt/Manifest
20 +++ b/net-p2p/cpuminer-opt/Manifest
21 @@ -1 +1,2 @@
22 DIST cpuminer-opt-3.16.3.tar.gz 1829694 BLAKE2B 2cf8f7f03a60956d7c84e55fd4bbee27025488bfcda2b6f02d7defe4983cc78fcf827591d1ed7998e859ffe67ce4baeb6ab53abc2f5c7552e5c3b19e66740501 SHA512 28d361c7889073b4b67981676183e114d9ccdda3529e2f8703948169d6edf91b9fe9cbe152edafbefa3d7b285dadf415cdea130df48af86323453c66a07d6513
23 +DIST cpuminer-opt-3.16.4.tar.gz 1830534 BLAKE2B c9fa07c36b634b0d1250b847baa4a971aad0b249aaf7792b4a69c42c5c98cc6b3e4fe20c95fdab9884520decc6e9d7071158a641863f1c0d2443dd096e372f2b SHA512 7459a9c6ad7afd85fdb8f7ff62c9deae2a2fc8341e3cf39da0f72e81bff8829e094bb830fb614fbce9665bbb259d764eb64b6d2a44ac45ecdd9ee870190d6539
24
25 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild
26 new file mode 100644
27 index 00000000000..fb5ffe94cd2
28 --- /dev/null
29 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild
30 @@ -0,0 +1,49 @@
31 +# Copyright 1999-2021 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"
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 + dev-libs/openssl:0=
49 +"
50 +RDEPEND="${DEPEND}"
51 +if [[ ${PV} == "9999" ]] ; then
52 + SRC_URI=""
53 + EGIT_REPO_URI="https://github.com/JayDDee/${PN}.git"
54 + inherit git-r3
55 +else
56 + KEYWORDS="~amd64"
57 + SRC_URI="https://github.com/JayDDee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
58 +fi
59 +
60 +src_prepare() {
61 + default
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + append-ldflags -Wl,-z,noexecstack
67 + econf --with-crypto --with-curl
68 +}
69 +
70 +src_install() {
71 + default
72 + systemd_dounit "${FILESDIR}"/${PN}.service
73 + insinto "/etc/${PN}"
74 + doins cpuminer-conf.json
75 +}
76 +
77 +src_test() {
78 + ./cpuminer --cputest || die
79 +}