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: Tue, 02 Jan 2018 16:00:08
Message-Id: 1514908772.62ee6c63068cff1d6526c4fbd3d61d3fb0520a13.candrews@gentoo
1 commit: 62ee6c63068cff1d6526c4fbd3d61d3fb0520a13
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 2 15:59:19 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 2 15:59:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62ee6c63
7
8 net-p2p/cpuminer-opt: 3.7.8 version bump
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 net-p2p/cpuminer-opt/Manifest | 1 +
13 net-p2p/cpuminer-opt/cpuminer-opt-3.7.8.ebuild | 47 ++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
17 index 670da61d7a2..cfd65256dd0 100644
18 --- a/net-p2p/cpuminer-opt/Manifest
19 +++ b/net-p2p/cpuminer-opt/Manifest
20 @@ -1 +1,2 @@
21 DIST cpuminer-opt-3.7.7.tar.gz 1602520 BLAKE2B 059afdbd90ff062c698432d352fbb9f32807219a24659f5e27990a32b791d868147cf6fa027dff60d2e16d5f43b36b826dbabdc971e4dae4e1473aaf8795b222 SHA512 85989257ef8ee945000621598f6a9c4ed1b8099c57902d570db3038617b787254a925865567541d75e4433aaff564ffc82bd659f645ca812f809602bef8bc7c7
22 +DIST cpuminer-opt-3.7.8.tar.gz 1611178 BLAKE2B 12082a378fa4656a38e634d692b182a7b5fa09aae24ba4d0226968e35680ed6175999e2daf789cdc7bda960ddd246a663ff54ff6b15435798a84268cfcff4fcc SHA512 19dcfde77405eef78061c13600dfef9ee69f62443e64c4019bdc18f98658ac1c41517f2c12f383edfd94ebcc35a58fbd2fe34037e530705bd2d1465f0355a9ab
23
24 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.7.8.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.7.8.ebuild
25 new file mode 100644
26 index 00000000000..912415ee00c
27 --- /dev/null
28 +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.7.8.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
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_avx2 cpu_flags_x86_sse2 curl libressl"
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +REQUIRED_USE="cpu_flags_x86_sse2"
43 +DEPEND="
44 + dev-libs/gmp:0
45 + dev-libs/jansson
46 + curl? ( >=net-misc/curl-7.15[ssl] )
47 + !libressl? ( dev-libs/openssl:0= )
48 + libressl? ( dev-libs/libressl: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 + use cpu_flags_x86_avx2 && append-cflags "-DFOUR_WAY"
68 + econf --with-crypto $(use_with curl)
69 +}
70 +
71 +src_install() {
72 + default
73 + systemd_dounit "${FILESDIR}"/${PN}.service
74 + insinto "/etc/${PN}"
75 + doins cpuminer-conf.json
76 +}