commit:     961f54a222e8fb4aee8b85c8141947d7fe110ace
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 14 18:32:43 2026 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 18:33:01 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=961f54a2

net-p2p/cpuminer-opt: add 26.1

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

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

diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
index 850885e692f8..529337270ff0 100644
--- a/net-p2p/cpuminer-opt/Manifest
+++ b/net-p2p/cpuminer-opt/Manifest
@@ -1 +1,2 @@
 DIST cpuminer-opt-25.7.tar.gz 1772011 BLAKE2B 
628d6d6011db542909fb3987a3885a92ffd0f42cf71f40baf44812f8ef4e44e19f55b3431843e6e3c861c3c5d4cf8290a974190578c9a8bfabbd5dbccb20bad8
 SHA512 
a9ca3f3ef1a0330b1d33d45dcd69fc2a907a858df88cb001ea4156e2a3e26a73151e3a53c44cde75bb65086db1b459fe636adb6cd835a2dbbca0fc25dea72c3e
+DIST cpuminer-opt-26.1.tar.gz 1772087 BLAKE2B 
30a172dfcdb4fdb42f72ea4906a9bad643780c9758a07e8d84656100917b17927fa81fdea2d3a1914d09c8abdf29af73fb947d151af9fb4f67537e7e0d63098a
 SHA512 
0c6aa9b39f1096c0e6f3433cd106f77950fc726f79a913fb2364acc09255ce7a5830ae18c2a4547a155ae41b1120a2497df4ceb6dc6b6a49eeb602a25db77b37

diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-26.1.ebuild 
b/net-p2p/cpuminer-opt/cpuminer-opt-26.1.ebuild
new file mode 100644
index 000000000000..b47b1e2713c4
--- /dev/null
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-26.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2026 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