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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A55FB158089 for ; Mon, 13 Nov 2023 15:39:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6CE02BC01D; Mon, 13 Nov 2023 15:39:34 +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 B210F2BC01D for ; Mon, 13 Nov 2023 15:39:34 +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 AB71B335D44 for ; Mon, 13 Nov 2023 15:39:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 07F2812CD for ; Mon, 13 Nov 2023 15:39:32 +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: <1699889968.04402fcf48f4b94b3f151e21becf61ceb5186208.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-23.9.ebuild X-VCS-Directories: net-p2p/cpuminer-opt/ X-VCS-Committer: candrews X-VCS-Committer-Name: Craig Andrews X-VCS-Revision: 04402fcf48f4b94b3f151e21becf61ceb5186208 X-VCS-Branch: master Date: Mon, 13 Nov 2023 15:39:32 +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: 9f763335-f536-4273-84c9-5e3bf0877c40 X-Archives-Hash: 326318366430fd1fb368aaf600100d13 commit: 04402fcf48f4b94b3f151e21becf61ceb5186208 Author: Craig Andrews gentoo org> AuthorDate: Mon Nov 13 15:39:07 2023 +0000 Commit: Craig Andrews gentoo org> CommitDate: Mon Nov 13 15:39:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04402fcf net-p2p/cpuminer-opt: add 23.9 Signed-off-by: Craig Andrews gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-23.9.ebuild | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index f3092ef2cf7e..239bff085d32 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -1 +1,2 @@ DIST cpuminer-opt-23.8.tar.gz 1789910 BLAKE2B 944cf64457b9eb37726e1d0f0976dbb61a67a8690803e0f5b1914770cdcfba760fa554f389f3a4da97256b57c2b76ae5516b8b2d864d09667aeeaa7ec9af8825 SHA512 dc1a9f635f7aa9b751f6f9a070e2665cecb95d0f859b0cdf77b2b5ba906724a567d00fb5d9542b063e381c3bcf1840997bf37534bde59fb667d9b2002fa0d67b +DIST cpuminer-opt-23.9.tar.gz 1789859 BLAKE2B a1a4594100a28c5eba9a2db3284944e61bb96b7fa118c44a4a97d66ada8df33f0e6feb74fb0cc507598b23980cd32f2839c5dc54abd4520fb875ab465da9d657 SHA512 76d81dcac0c631c46b1fa5b8c5918b21b900cafa00f1a56f72af87924b90b2c947b09f5aaed30d478e6e0e77b3ac6111e3e537e52460514185e3d2787db5ca11 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-23.9.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-23.9.ebuild new file mode 100644 index 000000000000..7a6224bf33d8 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-23.9.ebuild @@ -0,0 +1,48 @@ +# 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] +" +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 +}