public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Craig Andrews" <candrews@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/
Date: Fri, 24 Sep 2021 16:06:11 +0000 (UTC)	[thread overview]
Message-ID: <1632499569.8e9b3c1e60fb2085321b140d56c69e58452415e0.candrews@gentoo> (raw)

commit:     8e9b3c1e60fb2085321b140d56c69e58452415e0
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 24 16:03:29 2021 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Fri Sep 24 16:06:09 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9b3c1e

net-misc/xmrig: add USE=opencl

Thank you: Kevin Thomas <me <AT> kevinthomas.dev>

Bug: https://github.com/gentoo/gentoo/pull/22382
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-misc/xmrig/metadata.xml           | 3 +++
 net-misc/xmrig/xmrig-6.15.1-r1.ebuild | 5 +++--
 net-misc/xmrig/xmrig-9999.ebuild      | 9 ++++++---
 3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/net-misc/xmrig/metadata.xml b/net-misc/xmrig/metadata.xml
index db67f3fd0d2..c01c676279c 100644
--- a/net-misc/xmrig/metadata.xml
+++ b/net-misc/xmrig/metadata.xml
@@ -24,6 +24,9 @@
     <flag name="hwloc">
       Use <pkg>sys-apps/hwloc</pkg> for CPU affinity support
     </flag>
+    <flag name="opencl">
+      Enable OpenCL support
+    </flag>
   </use>
   <upstream>
     <remote-id type="github">xmrig/xmrig</remote-id>

diff --git a/net-misc/xmrig/xmrig-6.15.1-r1.ebuild b/net-misc/xmrig/xmrig-6.15.1-r1.ebuild
index 8ad79070a47..2639977e5a0 100644
--- a/net-misc/xmrig/xmrig-6.15.1-r1.ebuild
+++ b/net-misc/xmrig/xmrig-6.15.1-r1.ebuild
@@ -18,11 +18,12 @@ fi
 
 LICENSE="Apache-2.0 GPL-3+ MIT"
 SLOT="0"
-IUSE="cpu_flags_x86_sse4_1 donate hwloc +ssl"
+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="
@@ -47,7 +48,7 @@ src_configure() {
 		-DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1)
 		-DWITH_HWLOC=$(usex hwloc)
 		-DWITH_TLS=$(usex ssl)
-		-DWITH_OPENCL=OFF
+		-DWITH_OPENCL=$(usex opencl)
 		-DWITH_CUDA=OFF
 	)
 

diff --git a/net-misc/xmrig/xmrig-9999.ebuild b/net-misc/xmrig/xmrig-9999.ebuild
index 97dc2905531..2639977e5a0 100644
--- a/net-misc/xmrig/xmrig-9999.ebuild
+++ b/net-misc/xmrig/xmrig-9999.ebuild
@@ -18,11 +18,12 @@ fi
 
 LICENSE="Apache-2.0 GPL-3+ MIT"
 SLOT="0"
-IUSE="cpu_flags_x86_sse4_1 donate hwloc +ssl"
+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="
@@ -30,7 +31,9 @@ RDEPEND="
 	!arm64? ( sys-apps/msr-tools )
 "
 
-PATCHES=( "${FILESDIR}"/${PN}-6.12.2-nonotls.patch )
+PATCHES=(
+	"${FILESDIR}"/${PN}-6.12.2-nonotls.patch
+)
 
 src_prepare() {
 	if ! use donate ; then
@@ -45,7 +48,7 @@ src_configure() {
 		-DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1)
 		-DWITH_HWLOC=$(usex hwloc)
 		-DWITH_TLS=$(usex ssl)
-		-DWITH_OPENCL=OFF
+		-DWITH_OPENCL=$(usex opencl)
 		-DWITH_CUDA=OFF
 	)
 


             reply	other threads:[~2021-09-24 16:06 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 16:06 Craig Andrews [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-22  8:31 [gentoo-commits] repo/gentoo:master commit in: net-misc/xmrig/ Arthur Zamarin
2025-02-21 19:38 Sam James
2024-11-03 19:02 Craig Andrews
2024-10-24 20:47 Craig Andrews
2024-08-12 13:58 Craig Andrews
2024-05-21 11:45 Matthew Smith
2024-04-23 13:02 Craig Andrews
2024-04-23 13:02 Craig Andrews
2024-04-23 12:59 Craig Andrews
2024-04-23 12:59 Craig Andrews
2024-03-23  8:32 Sam James
2024-03-23  8:30 Arthur Zamarin
2024-03-23  7:36 Matthew Smith
2024-03-23  7:36 Matthew Smith
2024-02-27  1:01 Craig Andrews
2024-02-27  1:01 Craig Andrews
2024-01-28 22:53 Jonas Stein
2024-01-24  6:16 Sam James
2024-01-23 18:17 Arthur Zamarin
2023-11-25 21:52 Craig Andrews
2023-11-25 21:52 Craig Andrews
2023-09-01 17:21 Matthew Smith
2023-09-01 17:21 Matthew Smith
2023-07-05 13:23 Craig Andrews
2023-06-05 14:15 Craig Andrews
2023-04-10 17:28 Craig Andrews
2023-03-23 14:40 Craig Andrews
2023-03-23 14:32 Craig Andrews
2023-02-02 14:29 Craig Andrews
2023-02-02 14:29 Craig Andrews
2022-12-03 12:18 Arthur Zamarin
2022-12-03 11:48 Arthur Zamarin
2022-10-23 15:38 Matthew Smith
2022-09-09  9:48 Matthew Smith
2022-07-25 15:01 Agostino Sarubbo
2022-07-24 23:23 Sam James
2022-06-23 15:05 Craig Andrews
2022-05-21 17:35 Jakov Smolić
2022-05-21 10:02 Agostino Sarubbo
2022-04-05 17:10 Matthew Smith
2022-03-15 17:42 Matthew Smith
2022-03-15 12:33 Jakov Smolić
2022-03-13 10:32 Jakov Smolić
2022-02-04 17:37 Craig Andrews
2022-01-25 16:59 Craig Andrews
2022-01-25 16:59 Craig Andrews
2022-01-10 10:39 Arthur Zamarin
2022-01-09 20:35 Jakov Smolić
2021-12-20 18:59 Craig Andrews
2021-12-03 13:30 Craig Andrews
2021-11-29 16:11 Craig Andrews
2021-11-27  0:27 Craig Andrews
2021-11-27  0:27 Craig Andrews
2021-11-17  2:16 Sam James
2021-11-13 12:51 Jakov Smolić
2021-10-05 19:02 Craig Andrews
2021-09-22 12:27 Craig Andrews
2021-09-12  7:31 Sam James
2021-09-12  7:09 Agostino Sarubbo
2021-08-31 15:15 Craig Andrews
2021-08-15 16:44 Craig Andrews
2021-08-15 16:05 Craig Andrews
2021-08-09 15:09 Craig Andrews
2021-07-20 16:00 Sam James
2021-07-03 18:43 Craig Andrews
2021-07-01 18:27 Craig Andrews
2021-06-18  0:06 Sam James
2021-06-11  0:44 Craig Andrews
2021-06-11  0:44 Craig Andrews
2021-06-11  0:44 Craig Andrews
2021-06-09  4:05 Craig Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632499569.8e9b3c1e60fb2085321b140d56c69e58452415e0.candrews@gentoo \
    --to=candrews@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox