From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AF4A4158287 for ; Wed, 14 May 2025 22:11:49 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 95A4D343837 for ; Wed, 14 May 2025 22:11:49 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 9803F11036F; Wed, 14 May 2025 22:11:48 +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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 920C011036F for ; Wed, 14 May 2025 22:11:48 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 24545343837 for ; Wed, 14 May 2025 22:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5AF12030 for ; Wed, 14 May 2025 22:11:46 +0000 (UTC) From: "Kevin Thomas" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kevin Thomas" Message-ID: <1747260622.62d2f0787fc79e3a76475c20c744ffc7345dc4f2.me@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig-mo/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-misc/xmrig-mo/Manifest net-misc/xmrig-mo/xmrig-mo-6.22.2.ebuild X-VCS-Directories: net-misc/xmrig-mo/ X-VCS-Committer: me X-VCS-Committer-Name: Kevin Thomas X-VCS-Revision: 62d2f0787fc79e3a76475c20c744ffc7345dc4f2 X-VCS-Branch: dev Date: Wed, 14 May 2025 22:11:46 +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: 0230a134-d1a2-4dd9-bfa9-490c634cc971 X-Archives-Hash: da31c98915d93f7aae35b86e79b5bd12 commit: 62d2f0787fc79e3a76475c20c744ffc7345dc4f2 Author: Kevin Thomas kevinthomas dev> AuthorDate: Wed May 14 22:10:22 2025 +0000 Commit: Kevin Thomas kevinthomas dev> CommitDate: Wed May 14 22:10:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62d2f078 net-misc/xmrig-mo: add 6.22.2 Signed-off-by: Kevin Thomas kevinthomas.dev> net-misc/xmrig-mo/Manifest | 1 + net-misc/xmrig-mo/xmrig-mo-6.22.2.ebuild | 59 ++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest index 71e91ed93..28e8f95e3 100644 --- a/net-misc/xmrig-mo/Manifest +++ b/net-misc/xmrig-mo/Manifest @@ -1 +1,2 @@ DIST xmrig-mo-6.21.2-mo1.tar.gz 2486976 BLAKE2B 2bee7d461657f1c20b786b546c3c79d78bccc2eccaf5a7c91aa2fcea75f8a1a4069db38ce2e8b229b1e6a6d34439ca1f384f04249da0f17189a50c88511379a4 SHA512 0d6a89fedfe06988f1d85c6f6b87c651244a9222657e29c833ed368c782e3fe16f4d4b56b327e2af6cb89b201c5d892039da1185459699348fbdb996a9226253 +DIST xmrig-mo-6.22.2-mo1.tar.gz 2512628 BLAKE2B 7099cb205eead10cfa3def0e09ff96224b5fbbd2411bc648059ae5e433d11d8eadc74212cdccbd2a5b6c6499a80aebcb67705a541b3c60060228bdd8c8376ef4 SHA512 9c4b84e4a6bfe91b8d4e9162b0c57638f1c5b2cda051eb886984d865c49884af6619a908e0663a32d73f2167af755b1dfe18ba76808383d3e19255c40ff43527 diff --git a/net-misc/xmrig-mo/xmrig-mo-6.22.2.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.22.2.ebuild new file mode 100644 index 000000000..776fee69e --- /dev/null +++ b/net-misc/xmrig-mo/xmrig-mo-6.22.2.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MO_PV="mo1" +DESCRIPTION="MoneroOcean fork of xmrig that supports algo switching" +HOMEPAGE="https://github.com/MoneroOcean/xmrig" +SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz -> ${P}-${MO_PV}.tar.gz" +KEYWORDS="~amd64 ~arm64" + +LICENSE="Apache-2.0 GPL-3+ MIT" +SLOT="0" +IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl" + +DEPEND=" + dev-libs/libuv:= + hwloc? ( >=sys-apps/hwloc-2.5.0:= ) + opencl? ( virtual/opencl ) + ssl? ( dev-libs/openssl:= ) +" + +RDEPEND=" + ${DEPEND} + !arm64? ( sys-apps/msr-tools ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-6.12.2-nonotls.patch +) + +S="${WORKDIR}/xmrig-${PV}-${MO_PV}" + +src_prepare() { + if ! use donate ; then + sed -i 's/1;/0;/g' src/donate.h || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1) + -DWITH_HWLOC=$(usex hwloc) + -DWITH_TLS=$(usex ssl) + -DWITH_OPENCL=$(usex opencl) + -DWITH_CUDA=OFF + ) + + cmake_src_configure +} + +src_install() { + default + newbin "${BUILD_DIR}/xmrig" xmrig-mo +}