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: Sat, 01 Dec 2018 19:40:59
Message-Id: 1543693244.ad24ef353b6a1998a659cc747a5c54e5973c47ec.candrews@gentoo
1 commit: ad24ef353b6a1998a659cc747a5c54e5973c47ec
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 19:27:19 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 19:40:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad24ef35
7
8 net-p2p/cpuminer-opt: curl is an unconditional dependency, add test
9
10 Closes: https://bugs.gentoo.org/651270
11 Package-Manager: Portage-2.3.52, Repoman-2.3.12
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 ...cpuminer-opt-9999.ebuild => cpuminer-opt-3.8.8.1-r1.ebuild} | 10 +++++++---
15 net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild | 10 +++++++---
16 2 files changed, 14 insertions(+), 6 deletions(-)
17
18 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.8.8.1-r1.ebuild
19 similarity index 86%
20 copy from net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild
21 copy to net-p2p/cpuminer-opt/cpuminer-opt-3.8.8.1-r1.ebuild
22 index a1f4a660f6b..38cf197f497 100644
23 --- a/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild
24 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.8.8.1-r1.ebuild
25 @@ -1,4 +1,4 @@
26 -# Copyright 1999-2018 Gentoo Foundation
27 +# Copyright 1999-2018 Gentoo Authors
28 # Distributed under the terms of the GNU General Public License v2
29
30 EAPI=6
31 @@ -14,7 +14,7 @@ REQUIRED_USE="cpu_flags_x86_sse2"
32 DEPEND="
33 dev-libs/gmp:0
34 dev-libs/jansson
35 - curl? ( >=net-misc/curl-7.15[ssl] )
36 + >=net-misc/curl-7.15[ssl]
37 !libressl? ( dev-libs/openssl:0= )
38 libressl? ( dev-libs/libressl:0= )
39 "
40 @@ -35,7 +35,7 @@ src_prepare() {
41
42 src_configure() {
43 append-ldflags -Wl,-z,noexecstack
44 - econf --with-crypto $(use_with curl)
45 + econf --with-crypto --with-curl
46 }
47
48 src_install() {
49 @@ -44,3 +44,7 @@ src_install() {
50 insinto "/etc/${PN}"
51 doins cpuminer-conf.json
52 }
53 +
54 +src_test() {
55 + ./cpuminer --cputest || die
56 +}
57
58 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild
59 index a1f4a660f6b..38cf197f497 100644
60 --- a/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild
61 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-9999.ebuild
62 @@ -1,4 +1,4 @@
63 -# Copyright 1999-2018 Gentoo Foundation
64 +# Copyright 1999-2018 Gentoo Authors
65 # Distributed under the terms of the GNU General Public License v2
66
67 EAPI=6
68 @@ -14,7 +14,7 @@ REQUIRED_USE="cpu_flags_x86_sse2"
69 DEPEND="
70 dev-libs/gmp:0
71 dev-libs/jansson
72 - curl? ( >=net-misc/curl-7.15[ssl] )
73 + >=net-misc/curl-7.15[ssl]
74 !libressl? ( dev-libs/openssl:0= )
75 libressl? ( dev-libs/libressl:0= )
76 "
77 @@ -35,7 +35,7 @@ src_prepare() {
78
79 src_configure() {
80 append-ldflags -Wl,-z,noexecstack
81 - econf --with-crypto $(use_with curl)
82 + econf --with-crypto --with-curl
83 }
84
85 src_install() {
86 @@ -44,3 +44,7 @@ src_install() {
87 insinto "/etc/${PN}"
88 doins cpuminer-conf.json
89 }
90 +
91 +src_test() {
92 + ./cpuminer --cputest || die
93 +}