commit: d4981abaddc638ff54786b09341050e66a4bb5ee Author: Craig Andrews <candrews <AT> gentoo <DOT> org> AuthorDate: Mon Nov 17 14:50:10 2025 +0000 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> CommitDate: Mon Nov 17 15:05:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4981aba
net-p2p/cpuminer-opt: add 25.7 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-25.7.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index cb56a4b55dad..0355af43ca43 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-25.6.tar.gz 1772227 BLAKE2B d9f74fe161ed57418968377aa1a1115a11f4a5ba36c8968660c2db240a6c991fec26f6ba26873709cdcc85536cac90b83d2e5feb168c9f1e82481dc9caf6efc4 SHA512 106732e63b9967f230220d1066ff2df4aa10e3c712a2e2986c367872a13f3c74f6fcaa3b68c8fc45448d1bff2f6f4f4d77afb23f17b6f837c1d7348e30794507 +DIST cpuminer-opt-25.7.tar.gz 1772011 BLAKE2B 628d6d6011db542909fb3987a3885a92ffd0f42cf71f40baf44812f8ef4e44e19f55b3431843e6e3c861c3c5d4cf8290a974190578c9a8bfabbd5dbccb20bad8 SHA512 a9ca3f3ef1a0330b1d33d45dcd69fc2a907a858df88cb001ea4156e2a3e26a73151e3a53c44cde75bb65086db1b459fe636adb6cd835a2dbbca0fc25dea72c3e diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-25.7.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-25.7.ebuild new file mode 100644 index 000000000000..289eb7265773 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-25.7.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 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 +}
