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