summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2023-09-13 13:17:48 -0400
committerCraig Andrews <candrews@gentoo.org>2023-09-13 13:18:06 -0400
commit3229e6efec40a5a95687a631c5fabdd88850ec25 (patch)
tree8824fe89e0307d5da340bbb8449fb1ce305e856e /net-p2p
parentnet-dns/bind-tools: Stabilize 9.16.42 amd64, #914082 (diff)
downloadgentoo-3229e6efec40a5a95687a631c5fabdd88850ec25.tar.gz
gentoo-3229e6efec40a5a95687a631c5fabdd88850ec25.tar.bz2
gentoo-3229e6efec40a5a95687a631c5fabdd88850ec25.zip
net-p2p/cpuminer-opt: add 3.23.1
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-3.23.1.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest
index 61751b13b093..11374d455bf5 100644
--- a/net-p2p/cpuminer-opt/Manifest
+++ b/net-p2p/cpuminer-opt/Manifest
@@ -1 +1,2 @@
DIST cpuminer-opt-3.22.3.tar.gz 1784148 BLAKE2B 1a2fa789bcbb29c43df540d729a76f3f0d68fa2577302df3081eb2e951aad84b51f4defefa825ae8c32480a77c28a803dd1b9fc3ab4ff3141b4e479aeb107075 SHA512 230d3b3528266675bc6b1d304e36940306c389f4678ba6b092fd12d4ac3d98dfc10c334a9565319f4e39212f0a5d2f73220271ce093582f48eaa444098591de3
+DIST cpuminer-opt-3.23.1.tar.gz 1838750 BLAKE2B 9088f4413c4e15db185da5ee6ee210ece79a9d802d0c07045a3a402994ae5d596c9aa88dc7a7f2f99f731d7f126a62e8182ba0b41c8d120602413c95c7faba23 SHA512 c30f20a40e3c3151ce513e91f3a893cadc00b108f36d8c23d528d844a0eb0f1968d8558f4a060748306d85e0960dc633efedd010349ad0c98bc62c449214850d
diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.23.1.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.23.1.ebuild
new file mode 100644
index 000000000000..dd862b295bd0
--- /dev/null
+++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.23.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 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]
+ dev-libs/openssl:0=
+"
+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}"
+ doins cpuminer-conf.json
+}
+
+src_test() {
+ ./cpuminer --cputest || die
+}