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: Sun, 05 Jan 2020 01:18:20
Message-Id: 1578187090.0297330ba7a6281e35ff5e7e8062284c00d709e5.candrews@gentoo
1 commit: 0297330ba7a6281e35ff5e7e8062284c00d709e5
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 5 01:17:19 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 5 01:18:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0297330b
7
8 net-p2p/cpuminer-opt: 3.11.0 version bump
9
10 Package-Manager: Portage-2.3.84, 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.11.0.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 857306067b4..2c92bf787db 100644
19 --- a/net-p2p/cpuminer-opt/Manifest
20 +++ b/net-p2p/cpuminer-opt/Manifest
21 @@ -3,3 +3,4 @@ DIST cpuminer-opt-3.10.4.tar.gz 1958764 BLAKE2B 2d7aaffe51625d958c856612680de1d7
22 DIST cpuminer-opt-3.10.5.tar.gz 1963667 BLAKE2B 6906aef3b8e74ab917a1c9dcbf48eb5442076c5fc0c88c2491d567f673431350828a55932e9c31677d5cd67893f4939bd8eb85728145bcc633ef108037aab268 SHA512 cf7dadd2ac3d7d55a7648540d044b110be3f78a4babe35b1cdaf9dcd2a259c4b7b8f61a4524dd4d8c932aeeff902c36b6f24f59311bc6d29cdccc7ef45f0876f
23 DIST cpuminer-opt-3.10.6.tar.gz 1973545 BLAKE2B 9dda961f1dbaa24517389559fac599270ba7791510e09b287cc03bcc81b62ee13e81c852abf77de381249873c78595ac922acc95ad2a470f6d3e322cc1a7cd12 SHA512 a991d63be0f27a3a2e17ada84f0c149c284441b934684173f502666b84f8e46c97af91113e0aac5c69630ee4e3dd37ce135131a72956eadc27de542f4a34c380
24 DIST cpuminer-opt-3.10.7.tar.gz 1978510 BLAKE2B a770d663f5e01386656f80d64dbeee806aa82e8eafee9630fe1edbb0941a8d580c7d9f4c02d0a94045a3874d688ddf55b731e0c4e715dce57f174a237e078ee5 SHA512 c5b4dc6d600867391db3828a8f4ab962bbe3b73dd5ccd90610f552456015f12cad8dcff2ecec20a4f0ddecb96b9cba55dbd762ae5bbb7000292632c334f721eb
25 +DIST cpuminer-opt-3.11.0.tar.gz 1999976 BLAKE2B c411265ba9d9d380601cbf2e2ca314c95d299d91e900140c4f2a6f7452325c5e6315feadb2b9096df119483d08fe51262a09d535a28ac6b50bf7793ee1e357f6 SHA512 28868d525201d7f9e71601d048b64c82d68329c571d12ada0f681711d2d8b4a4644a6ccc12f2cbb4d0f67c38f991db3cdd39e5dd7e9ad9932cbc5ad9acdaf50b
26
27 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.11.0.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.11.0.ebuild
28 new file mode 100644
29 index 00000000000..a5d436b3b8b
30 --- /dev/null
31 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.11.0.ebuild
32 @@ -0,0 +1,50 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools flag-o-matic systemd
39 +
40 +DESCRIPTION="Optimized multi algo CPU miner"
41 +HOMEPAGE="https://github.com/JayDDee/cpuminer-opt"
42 +IUSE="cpu_flags_x86_sse2 curl libressl"
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +REQUIRED_USE="cpu_flags_x86_sse2"
46 +DEPEND="
47 + dev-libs/gmp:0
48 + dev-libs/jansson
49 + >=net-misc/curl-7.15[ssl]
50 + !libressl? ( dev-libs/openssl:0= )
51 + libressl? ( dev-libs/libressl:0= )
52 +"
53 +RDEPEND="${DEPEND}"
54 +if [[ ${PV} == "9999" ]] ; then
55 + SRC_URI=""
56 + EGIT_REPO_URI="https://github.com/JayDDee/${PN}.git"
57 + inherit git-r3
58 +else
59 + KEYWORDS="~amd64"
60 + SRC_URI="https://github.com/JayDDee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
61 +fi
62 +
63 +src_prepare() {
64 + default
65 + eautoreconf
66 +}
67 +
68 +src_configure() {
69 + append-ldflags -Wl,-z,noexecstack
70 + econf --with-crypto --with-curl
71 +}
72 +
73 +src_install() {
74 + default
75 + systemd_dounit "${FILESDIR}"/${PN}.service
76 + insinto "/etc/${PN}"
77 + doins cpuminer-conf.json
78 +}
79 +
80 +src_test() {
81 + ./cpuminer --cputest || die
82 +}