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 0F3F11581D3 for ; Thu, 30 May 2024 16:02:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CB5AE2A9F; Thu, 30 May 2024 16:02:55 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5D08E2A9F for ; Thu, 30 May 2024 16:02:54 +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 DC20233F9FD for ; Thu, 30 May 2024 16:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A7DF1BFD for ; Thu, 30 May 2024 16:02:52 +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: <1717084968.f7ad0d6672f45cccd8ad60613fe2319a732614c5.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.3.ebuild X-VCS-Directories: net-p2p/cpuminer-opt/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: f7ad0d6672f45cccd8ad60613fe2319a732614c5 X-VCS-Branch: master Date: Thu, 30 May 2024 16:02:52 +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: 31f92374-3a04-4c49-9710-efa28346e5ed X-Archives-Hash: 3c141eb1aa54903b1ec114c45a87cd1d commit: f7ad0d6672f45cccd8ad60613fe2319a732614c5 Author: Craig Andrews gentoo org> AuthorDate: Thu May 30 16:00:51 2024 +0000 Commit: Craig Andrews gentoo org> CommitDate: Thu May 30 16:02:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7ad0d66 net-p2p/cpuminer-opt: add 24.3 Signed-off-by: Craig Andrews gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-24.3.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index 3ca1de1b9c11..884b07f18b67 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-24.2.tar.gz 1790962 BLAKE2B 16ff1664211ee8b48e5690a371a358f66eb9b38a550006b136c85cd258f35cb046d49d9f11167937a5f8d3926ecb374a9acecf56ba1c91bec48d6688aea7879a SHA512 393d5b2759078e67f0220f0362468540b69e6e2db2bb9adda1c92c3e8bca5fd8b944ad83e6e948f13216c3c4bd49aaf9d4d4b01e893aa35c56fa82af662c571f +DIST cpuminer-opt-24.3.tar.gz 1791024 BLAKE2B 7b563f48f2170dd73cd790243bf5b2043cee85f8f25655f805f2c0aeba96e580047cdb10a6a8bda4a2942a8417a1422dd884aebd9593f0b1b0cd0ed9cb4ceb53 SHA512 4ba7043b5226d2cef8fd25044942b01245c8ae7c9088e7b1e07f115b4f6592e2746cd2261a123d94344f81c12f4ceb897579ebbfa048569779f9cd5ee65d9c50 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-24.3.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-24.3.ebuild new file mode 100644 index 000000000000..2683d4bdc544 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-24.3.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 +}