From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 61488158083 for ; Fri, 13 Sep 2024 19:07:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69974E29A6; Fri, 13 Sep 2024 19:07:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4ACA3E29A6 for ; Fri, 13 Sep 2024 19:07:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 475E033E3A9 for ; Fri, 13 Sep 2024 19:07:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27A7816D8 for ; Fri, 13 Sep 2024 19:07:09 +0000 (UTC) From: "Craig Andrews" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Craig Andrews" Message-ID: <1726254425.941737f7a24f50ed888d90b2a009361f55965dee.candrews@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/cpuminer-opt/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/cpuminer-opt/Manifest net-p2p/cpuminer-opt/cpuminer-opt-24.5.ebuild X-VCS-Directories: net-p2p/cpuminer-opt/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 941737f7a24f50ed888d90b2a009361f55965dee X-VCS-Branch: master Date: Fri, 13 Sep 2024 19:07:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2182a728-cc00-4f42-937b-ed3d7cd1e09e X-Archives-Hash: d0adaf1c5b071bd956b02281a960f001 commit: 941737f7a24f50ed888d90b2a009361f55965dee Author: Craig Andrews gentoo org> AuthorDate: Fri Sep 13 19:06:41 2024 +0000 Commit: Craig Andrews gentoo org> CommitDate: Fri Sep 13 19:07:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=941737f7 net-p2p/cpuminer-opt: add 24.5 Signed-off-by: Craig Andrews gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-24.5.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index 09f91ab4bdbb..19315c5cf94e 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-24.4.tar.gz 1787907 BLAKE2B 73f1da98f64ab7048f12d22f16ea2c94e2a0059a941d161d7c3e9721d13e7e018e0c98486f969270b1de580077ea8cd188f6b88e1f3a61b71c4f5626b43f7100 SHA512 e3648726ebd528d79c0d5f89fdf2affa1629fef0a28c7bccc6c3fdc76bac2c5ce8db9e36ccc0f1c6e3bf4f663cf15dd06d7130a6dbb205f3ab55ac675a6bac77 +DIST cpuminer-opt-24.5.tar.gz 1792866 BLAKE2B b9eba21088d967ecf85657f14873bb4b13214b4172071d22869d01d1b9f5acf9d7de56f20ed80ddce9c4cee1fbb59c65fab70893580e38978258b955a096eb80 SHA512 a29d9d479644511204534b680c0feaff6d232f24f70ceb77f5260f3aae35275a4823d0f75c6286013bbef5b30162e3807919e8c19a4c0ad932e1b091ce8c5428 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-24.5.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-24.5.ebuild new file mode 100644 index 000000000000..2683d4bdc544 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-24.5.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 +}