From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1612378-garchives=archives.gentoo.org@lists.gentoo.org>
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 A3E79158041
	for <garchives@archives.gentoo.org>; Mon, 18 Mar 2024 18:29:52 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C5816E29AB;
	Mon, 18 Mar 2024 18:29:51 +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 9E2DAE29AB
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Mar 2024 18:29:51 +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 591073408DD
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Mar 2024 18:29:50 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 9443714EE
	for <gentoo-commits@lists.gentoo.org>; Mon, 18 Mar 2024 18:29:48 +0000 (UTC)
From: "Kevin Thomas" <me@kevinthomas.dev>
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" <me@kevinthomas.dev>
Message-ID: <1710786545.300f711822dc72f6575555b57727ab60257175bb.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.21.1.ebuild
X-VCS-Directories: net-misc/xmrig-mo/
X-VCS-Committer: me
X-VCS-Committer-Name: Kevin Thomas
X-VCS-Revision: 300f711822dc72f6575555b57727ab60257175bb
X-VCS-Branch: dev
Date: Mon, 18 Mar 2024 18:29:48 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 2c4cba50-7f0b-43e9-8a15-d7b57877ef74
X-Archives-Hash: 46583260f1feddf4dc3562def8cbfa2b

commit:     300f711822dc72f6575555b57727ab60257175bb
Author:     Kevin Thomas <me <AT> kevinthomas <DOT> dev>
AuthorDate: Mon Mar 18 18:29:05 2024 +0000
Commit:     Kevin Thomas <me <AT> kevinthomas <DOT> dev>
CommitDate: Mon Mar 18 18:29:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=300f7118

net-misc/xmrig-mo: add 6.21.1

Signed-off-by: Kevin Thomas <me <AT> kevinthomas.dev>

 net-misc/xmrig-mo/Manifest               |  1 +
 net-misc/xmrig-mo/xmrig-mo-6.21.1.ebuild | 59 ++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest
index 93f4970440..fbe3a71c7e 100644
--- a/net-misc/xmrig-mo/Manifest
+++ b/net-misc/xmrig-mo/Manifest
@@ -9,3 +9,4 @@ DIST xmrig-mo-6.19.1-mo1.tar.gz 2468434 BLAKE2B b60767cfecb25ad526b025f81d8565c9
 DIST xmrig-mo-6.19.2-mo1.tar.gz 2468797 BLAKE2B 8918db8a82ed0d00dfe0e9c099939449b55143509f6a8f7afb814eece04286facbcf5c522a57515d6b4e711b44981e3f15347f09df5aa4d6b959a8fea76cf0ef SHA512 160aa795c97382c89e669b2753e32ef74a1ae546e531118dbfc4b3367af628aeed2f5965a587b5bc6cf3a903c31a1f73d1bc07259aaa16ab3c66083472a71f49
 DIST xmrig-mo-6.19.3-mo1.tar.gz 2469382 BLAKE2B ac4d7ab23d1f90885eaebd2f509f955c9cf88cdcf5d3296222f2b0990d5233022c5370c0e81d04eee0d5fa1002fa9fbf898d29bd831a6e44d4adde57e2501f8f SHA512 188445bd1071c062c9e98d67518b270ea8807317f3a74992c476546ab14b18a2e572dc3cfd3af6e21b1a1e908dcf4244367b8d31a98503dbff576ad5a66f1de0
 DIST xmrig-mo-6.20.0-mo1.tar.gz 2472300 BLAKE2B 4c8d620a77ab4a62f2459de4ec4d56b56a5c6ba6a825d049d3cb9494a21f10311aa22e2cb31c4f07bf92e3ebf2c5fce5f197c6bf3e57a507b48bed129e08ce03 SHA512 c0575fb054c53012123329dca549e43d35a30f83e0d2ebd0649946c085fd52e9b1732049ac00c97bcfd92ad8317c2dd828814a9746ddc2916c22f5fcac5384d0
+DIST xmrig-mo-6.21.1-mo1.tar.gz 2476178 BLAKE2B 2e03f3a52141725ab60c573a10f70d5ea1cac5d692db736e7e8621a8a0779b41b3e6d990b97ed8ed3cb1ef7e1dffd87b46b01680652a6a28a73d38fa92b8513b SHA512 7404f2d13eeb1dba8bb00ad59c09a8be3c63a07b7025803d8b6670fed1df7820891c19a471a24ba55dc8887265ffb78867054f01ad06082e92464f196e9338f8

diff --git a/net-misc/xmrig-mo/xmrig-mo-6.21.1.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.21.1.ebuild
new file mode 100644
index 0000000000..93bea0a1a7
--- /dev/null
+++ b/net-misc/xmrig-mo/xmrig-mo-6.21.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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:= )
+	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
+}