Gentoo Archives: gentoo-commits

From: Kevin Thomas <me@×××××××××××.dev>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/xmrig-mo/
Date: Sat, 05 Feb 2022 00:25:41
Message-Id: 1644020690.82e15110de34bf13b8c37cf3ede692821985ca4b.me@gentoo
1 commit: 82e15110de34bf13b8c37cf3ede692821985ca4b
2 Author: Kevin Thomas <me <AT> kevinthomas <DOT> dev>
3 AuthorDate: Sat Feb 5 00:24:50 2022 +0000
4 Commit: Kevin Thomas <me <AT> kevinthomas <DOT> dev>
5 CommitDate: Sat Feb 5 00:24:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=82e15110
7
8 net-misc/xmrig-mo: bump to 6.16.4
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Kevin Thomas <me <AT> kevinthomas.dev>
12
13 net-misc/xmrig-mo/Manifest | 1 +
14 net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild | 59 ++++++++++++++++++++++++++++++++
15 2 files changed, 60 insertions(+)
16
17 diff --git a/net-misc/xmrig-mo/Manifest b/net-misc/xmrig-mo/Manifest
18 index c0b47e947..bfd575886 100644
19 --- a/net-misc/xmrig-mo/Manifest
20 +++ b/net-misc/xmrig-mo/Manifest
21 @@ -1,2 +1,3 @@
22 DIST xmrig-mo-6.16.2-mo2.tar.gz 2480342 BLAKE2B cfb1078f67913f3719dd929a1a41ef2040fdf5c7696baca990e3d9f869566e609406b4d592db50d00024adc5da05427382688e826523a9a407c0a79b554d3f5a SHA512 961e52c8ac3de9a55cbbdc11d282fc65c1827e87ac55b5f892866e5193509b23ca4bc9eeb869c019d1b025be14a877142e3b55c7485b6ded6673c832df8c36c3
23 DIST xmrig-mo-6.16.3-mo1.tar.gz 2481805 BLAKE2B 7d134bc4294824e5a79b2782a07a5e0513e77ecff79deb8434c3b36c3ac21053679e451cc3cde97a84908e56fa151b4cd142711c6a7d5c016b6968cec4d21e7d SHA512 e27a529315ea819d2ac41cb28ff9c5cf386e8c687aad29c170acd1d84563ca4aecf97efdbb2c5d766c63439f65aa3f44f055e0d146b365084053a139398e5608
24 +DIST xmrig-mo-6.16.4-mo1.tar.gz 2482875 BLAKE2B 659d4020c51c6e6c56d0fcca1e9e7e5e07b5aeb84b24cc0dfeb2d3b10c8116a9cdfb904cf82afcff7d6cf5320f54528399a0b36146a11a2c0172e2e579246da9 SHA512 dd2bb1e2279ab42116814d8e1ed04115719007a438cec5b6da36b8e60e1965e6bb94802cc079a6878f68f89c24d4af8561068a81ec316827784aaf82c30156e4
25
26 diff --git a/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild b/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild
27 new file mode 100644
28 index 000000000..93bea0a1a
29 --- /dev/null
30 +++ b/net-misc/xmrig-mo/xmrig-mo-6.16.4.ebuild
31 @@ -0,0 +1,59 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake
38 +
39 +MO_PV="mo1"
40 +DESCRIPTION="MoneroOcean fork of xmrig that supports algo switching"
41 +HOMEPAGE="https://github.com/MoneroOcean/xmrig"
42 +SRC_URI="https://github.com/MoneroOcean/xmrig/archive/v${PV}-${MO_PV}.tar.gz -> ${P}-${MO_PV}.tar.gz"
43 +KEYWORDS="~amd64 ~arm64"
44 +
45 +LICENSE="Apache-2.0 GPL-3+ MIT"
46 +SLOT="0"
47 +IUSE="cpu_flags_x86_sse4_1 donate hwloc opencl +ssl"
48 +
49 +DEPEND="
50 + dev-libs/libuv:=
51 + hwloc? ( sys-apps/hwloc:= )
52 + opencl? ( virtual/opencl )
53 + ssl? ( dev-libs/openssl:= )
54 +"
55 +
56 +RDEPEND="
57 + ${DEPEND}
58 + !arm64? ( sys-apps/msr-tools )
59 +"
60 +
61 +PATCHES=(
62 + "${FILESDIR}"/${PN}-6.12.2-nonotls.patch
63 +)
64 +
65 +S="${WORKDIR}/xmrig-${PV}-${MO_PV}"
66 +
67 +src_prepare() {
68 + if ! use donate ; then
69 + sed -i 's/1;/0;/g' src/donate.h || die
70 + fi
71 +
72 + cmake_src_prepare
73 +}
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DWITH_SSE4_1=$(usex cpu_flags_x86_sse4_1)
78 + -DWITH_HWLOC=$(usex hwloc)
79 + -DWITH_TLS=$(usex ssl)
80 + -DWITH_OPENCL=$(usex opencl)
81 + -DWITH_CUDA=OFF
82 + )
83 +
84 + cmake_src_configure
85 +}
86 +
87 +src_install() {
88 + default
89 + newbin "${BUILD_DIR}/xmrig" xmrig-mo
90 +}