commit: 4e7aa4e31a212778134c6d0d139aac68d8bdc91a Author: Craig Andrews <candrews <AT> gentoo <DOT> org> AuthorDate: Wed Jul 9 16:05:57 2025 +0000 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> CommitDate: Wed Jul 9 16:31:18 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e7aa4e3
net-p2p/cpuminer-opt: add 25.5 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-25.5.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index 43a6301371e0..ede68dd9febc 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-25.4.tar.gz 1771611 BLAKE2B 59063a3ec5b3faa30109cf593a80f0d37327b8dfd3253064128fe0575e030dba7399b6e709994142fe01421c1e8aacd06c498d0414ac02db4a5c46e769ea59de SHA512 69590c68aeefdbe4264bb68098ff908d6aee903f1f44c472a8b9efed0a9cded93dc1aea9416c4ab02670992e03d1fd5997aca577cc83801eb0a3c62539234d9e +DIST cpuminer-opt-25.5.tar.gz 1771079 BLAKE2B f92239ab93bb414f3a1c05000b123425cd2b9d223b188b896828983ff7348bb7a9a4952ec1dfcb19888212816c70464da1b4b5031b8c8b6d08df7f1b4cff6a55 SHA512 46bece85ed181d42e13b29861a5723a2837d626a256c3dea0deae68bd68276687987d6f54b5fb2560a4552f1c06749996406d9d40afd90e141940a1546a87966 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-25.5.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-25.5.ebuild new file mode 100644 index 000000000000..289eb7265773 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-25.5.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 +}
