commit:     27f1741c077550b24bcf7df58a9ef2eaa72236fc
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 24 15:15:56 2021 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Thu Jun 24 15:16:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27f1741c

net-p2p/cpuminer-opt: 3.16.4 version bump

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-p2p/cpuminer-opt/Manifest                   |  1 +
 net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild | 49 +++++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
index 6d3c6b02608..4bcaa3be23b 100644
--- a/net-p2p/cpuminer-opt/Manifest
+++ b/net-p2p/cpuminer-opt/Manifest
@@ -1 +1,2 @@
 DIST cpuminer-opt-3.16.3.tar.gz 1829694 BLAKE2B 
2cf8f7f03a60956d7c84e55fd4bbee27025488bfcda2b6f02d7defe4983cc78fcf827591d1ed7998e859ffe67ce4baeb6ab53abc2f5c7552e5c3b19e66740501
 SHA512 
28d361c7889073b4b67981676183e114d9ccdda3529e2f8703948169d6edf91b9fe9cbe152edafbefa3d7b285dadf415cdea130df48af86323453c66a07d6513
+DIST cpuminer-opt-3.16.4.tar.gz 1830534 BLAKE2B 
c9fa07c36b634b0d1250b847baa4a971aad0b249aaf7792b4a69c42c5c98cc6b3e4fe20c95fdab9884520decc6e9d7071158a641863f1c0d2443dd096e372f2b
 SHA512 
7459a9c6ad7afd85fdb8f7ff62c9deae2a2fc8341e3cf39da0f72e81bff8829e094bb830fb614fbce9665bbb259d764eb64b6d2a44ac45ecdd9ee870190d6539

diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild 
b/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild
new file mode 100644
index 00000000000..fb5ffe94cd2
--- /dev/null
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.16.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools flag-o-matic systemd
+
+DESCRIPTION="Optimized multi algo CPU miner"
+HOMEPAGE="https://github.com/JayDDee/cpuminer-opt";
+IUSE="cpu_flags_x86_sse2 curl"
+LICENSE="GPL-2"
+SLOT="0"
+REQUIRED_USE="cpu_flags_x86_sse2"
+DEPEND="
+       dev-libs/gmp:0
+       dev-libs/jansson
+       >=net-misc/curl-7.15[ssl]
+       dev-libs/openssl:0=
+"
+RDEPEND="${DEPEND}"
+if [[ ${PV} == "9999" ]] ; then
+       SRC_URI=""
+       EGIT_REPO_URI="https://github.com/JayDDee/${PN}.git";
+       inherit git-r3
+else
+       KEYWORDS="~amd64"
+       SRC_URI="https://github.com/JayDDee/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+fi
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       append-ldflags -Wl,-z,noexecstack
+       econf --with-crypto --with-curl
+}
+
+src_install() {
+       default
+       systemd_dounit "${FILESDIR}"/${PN}.service
+       insinto "/etc/${PN}"
+       doins cpuminer-conf.json
+}
+
+src_test() {
+       ./cpuminer --cputest || die
+}

Reply via email to