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 3C1941581D3 for ; Tue, 21 May 2024 13:45:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5615CE2A32; Tue, 21 May 2024 13:45:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 2E20BE2A32 for ; Tue, 21 May 2024 13:45:19 +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 29F79335DEB for ; Tue, 21 May 2024 13:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 39766109C for ; Tue, 21 May 2024 13:45:16 +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: <1716299113.e3d968d842d39ec35f61c6411cc90268f92609f1.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.2.ebuild X-VCS-Directories: net-p2p/cpuminer-opt/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: e3d968d842d39ec35f61c6411cc90268f92609f1 X-VCS-Branch: master Date: Tue, 21 May 2024 13:45:16 +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: a6dbfdff-30a9-4079-ba77-1652af098f82 X-Archives-Hash: 8ed44ecac1b5d38de6ee05c7c90d339d commit: e3d968d842d39ec35f61c6411cc90268f92609f1 Author: Craig Andrews gentoo org> AuthorDate: Tue May 21 13:44:50 2024 +0000 Commit: Craig Andrews gentoo org> CommitDate: Tue May 21 13:45:13 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3d968d8 net-p2p/cpuminer-opt: add 24.2 Signed-off-by: Craig Andrews gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index e5196bba3592..15d72e019a5f 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-24.1.tar.gz 1790880 BLAKE2B 8a14df69c612bd9d00ec59a4da36b468b285f04731d8b943edea3af05bf0baf676a540e0daf3b411df3803b02314a6c6588c276cd38e2107918402f364d8b644 SHA512 f76dc5695f0baa745a6e6379ff4b105b18a183088a26eede31dbada6da5459eaceaecf22213dff21c95bf99ca6a5e179af839c1e742e1212f209ff6e8ed5fc6a +DIST cpuminer-opt-24.2.tar.gz 1790962 BLAKE2B 16ff1664211ee8b48e5690a371a358f66eb9b38a550006b136c85cd258f35cb046d49d9f11167937a5f8d3926ecb374a9acecf56ba1c91bec48d6688aea7879a SHA512 393d5b2759078e67f0220f0362468540b69e6e2db2bb9adda1c92c3e8bca5fd8b944ad83e6e948f13216c3c4bd49aaf9d4d4b01e893aa35c56fa82af662c571f diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-24.2.ebuild new file mode 100644 index 000000000000..2683d4bdc544 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-24.2.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 +}