summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2024-12-09 09:57:41 -0500
committerCraig Andrews <candrews@gentoo.org>2024-12-09 10:09:23 -0500
commit8247a454f07a3b2a1587647dffc418cac93e4b67 (patch)
tree72bcba80492ac6594c71d7fec8314ad23a4a75e6 /net-p2p
parentapp-backup/dar: add 2.7.16 (diff)
downloadgentoo-8247a454f07a3b2a1587647dffc418cac93e4b67.tar.gz
gentoo-8247a454f07a3b2a1587647dffc418cac93e4b67.tar.bz2
gentoo-8247a454f07a3b2a1587647dffc418cac93e4b67.zip
net-p2p/cpuminer-opt: add 24.6
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/cpuminer-opt/Manifest1
-rw-r--r--net-p2p/cpuminer-opt/cpuminer-opt-24.6.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
index 19315c5cf94e..a3b018b04376 100644
--- a/net-p2p/cpuminer-opt/Manifest
+++ b/net-p2p/cpuminer-opt/Manifest
@@ -1,2 +1,3 @@
DIST cpuminer-opt-24.4.tar.gz 1787907 BLAKE2B 73f1da98f64ab7048f12d22f16ea2c94e2a0059a941d161d7c3e9721d13e7e018e0c98486f969270b1de580077ea8cd188f6b88e1f3a61b71c4f5626b43f7100 SHA512 e3648726ebd528d79c0d5f89fdf2affa1629fef0a28c7bccc6c3fdc76bac2c5ce8db9e36ccc0f1c6e3bf4f663cf15dd06d7130a6dbb205f3ab55ac675a6bac77
DIST cpuminer-opt-24.5.tar.gz 1792866 BLAKE2B b9eba21088d967ecf85657f14873bb4b13214b4172071d22869d01d1b9f5acf9d7de56f20ed80ddce9c4cee1fbb59c65fab70893580e38978258b955a096eb80 SHA512 a29d9d479644511204534b680c0feaff6d232f24f70ceb77f5260f3aae35275a4823d0f75c6286013bbef5b30162e3807919e8c19a4c0ad932e1b091ce8c5428
+DIST cpuminer-opt-24.6.tar.gz 1794289 BLAKE2B 1d6fef86ec38351a88a98b5f2d574521ce9997ce9a11ffc709110ad906026f5a487dce8980550b182c066cc3c960ecf31571e884b04d523c90a91714cd71b6e7 SHA512 2c33a48827c3fe34222bc13e58f1a9582a4f77563047a48d386aa75f5364031f1bcc8561a5f7f1aed95138291417506e6f142b90bbb12fcfb3552935afb34035
diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-24.6.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-24.6.ebuild
new file mode 100644
index 000000000000..2683d4bdc544
--- /dev/null
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-24.6.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
+}