commit:     e3d968d842d39ec35f61c6411cc90268f92609f1
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Tue May 21 13:44:50 2024 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Tue May 21 13:45:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3d968d8

net-p2p/cpuminer-opt: add 24.2

Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

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

diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
index e5196bba3592..15d72e019a5f 100644
--- a/net-p2p/cpuminer-opt/Manifest
+++ b/net-p2p/cpuminer-opt/Manifest
@@ -1 +1,2 @@
 DIST cpuminer-opt-24.1.tar.gz 1790880 BLAKE2B 
8a14df69c612bd9d00ec59a4da36b468b285f04731d8b943edea3af05bf0baf676a540e0daf3b411df3803b02314a6c6588c276cd38e2107918402f364d8b644
 SHA512 
f76dc5695f0baa745a6e6379ff4b105b18a183088a26eede31dbada6da5459eaceaecf22213dff21c95bf99ca6a5e179af839c1e742e1212f209ff6e8ed5fc6a
+DIST cpuminer-opt-24.2.tar.gz 1790962 BLAKE2B 
16ff1664211ee8b48e5690a371a358f66eb9b38a550006b136c85cd258f35cb046d49d9f11167937a5f8d3926ecb374a9acecf56ba1c91bec48d6688aea7879a
 SHA512 
393d5b2759078e67f0220f0362468540b69e6e2db2bb9adda1c92c3e8bca5fd8b944ad83e6e948f13216c3c4bd49aaf9d4d4b01e893aa35c56fa82af662c571f

diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild 
b/net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild
new file mode 100644
index 000000000000..2683d4bdc544
--- /dev/null
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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:=
+       dev-libs/jansson:=
+       >=net-misc/curl-7.15[ssl]
+"
+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}"
+       newins config-template.json cpuminer-conf.json
+}
+
+src_test() {
+       ./cpuminer --cputest || die
+}

Reply via email to