commit:     c19cff63f84423899e3c00f38f5567054125ee1b
Author:     Adam Pimentel <adam.pimentel <AT> protonmail <DOT> com>
AuthorDate: Sun Aug 24 05:42:53 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Aug 24 05:42:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c19cff63

net-p2p/monero: make supercop optional, add ~ppc64 flag

Signed-off-by: Adam Pimentel <adam.pimentel <AT> protonmail.com>

 net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch  | 11 +++++++++++
 .../monero/files/monero-0.18.4.0-unbundle-dependencies.patch  |  3 +--
 net-p2p/monero/monero-0.18.4.1.ebuild                         | 10 +++++++---
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch 
b/net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch
new file mode 100644
index 0000000000..ddcd36e51f
--- /dev/null
+++ b/net-p2p/monero/files/monero-0.18.4.0-external-supercop.patch
@@ -0,0 +1,11 @@
+--- a/src/device/CMakeLists.txt
++++ b/src/device/CMakeLists.txt
+@@ -73,7 +73,7 @@
+     cncrypto
+     cryptonote_format_utils_basic
+     ringct_basic
+     wallet-crypto
++    monero-crypto
+     ${OPENSSL_CRYPTO_LIBRARIES}
+     ${Boost_SERIALIZATION_LIBRARY}
+   PRIVATE

diff --git a/net-p2p/monero/files/monero-0.18.4.0-unbundle-dependencies.patch 
b/net-p2p/monero/files/monero-0.18.4.0-unbundle-dependencies.patch
index 744f2da20b..fbef3d15af 100644
--- a/net-p2p/monero/files/monero-0.18.4.0-unbundle-dependencies.patch
+++ b/net-p2p/monero/files/monero-0.18.4.0-unbundle-dependencies.patch
@@ -77,12 +77,11 @@
    namespace wallet {
 --- a/src/device/CMakeLists.txt
 +++ b/src/device/CMakeLists.txt
-@@ -73,7 +73,7 @@
+@@ -73,7 +73,6 @@
      cncrypto
      cryptonote_format_utils_basic
      ringct_basic
 -    wallet-crypto
-+    monero-crypto
      ${OPENSSL_CRYPTO_LIBRARIES}
      ${Boost_SERIALIZATION_LIBRARY}
    PRIVATE

diff --git a/net-p2p/monero/monero-0.18.4.1.ebuild 
b/net-p2p/monero/monero-0.18.4.1.ebuild
index d9091f7aa1..95ea8164f9 100644
--- a/net-p2p/monero/monero-0.18.4.1.ebuild
+++ b/net-p2p/monero/monero-0.18.4.1.ebuild
@@ -16,12 +16,12 @@ if [[ ${PV} == 9999 ]]; then
        EGIT_SUBMODULES=()
 else
        SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
-       KEYWORDS="~amd64 ~arm64 ~x86"
+       KEYWORDS="~amd64 ~arm64 ~x86 ~ppc64"
 fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc 
cpu_flags_x86_aes"
+IUSE="+daemon hw-wallet readline +tools +wallet-cli +wallet-rpc 
cpu_flags_x86_aes monero-supercop"
 REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
 RESTRICT="test"
 # Test requires python's requests, psutil, deepdiff which are packaged
@@ -35,7 +35,7 @@ DEPEND="
        dev-libs/openssl:=
        dev-libs/randomx
        dev-libs/rapidjson
-       dev-libs/supercop
+       monero-supercop? ( dev-libs/supercop )
        net-dns/unbound:=[threads]
        net-libs/miniupnpc:=
        net-libs/zeromq:=
@@ -58,6 +58,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.18.4.0-unbundle-dependencies.patch
 )
 
+
 src_prepare() {
        # The build system does not recognize the release tarball (bug?)
        # so we patch the GitVersion file.
@@ -67,6 +68,9 @@ src_prepare() {
 }
 
 src_configure() {
+       if use monero-supercop; then
+               PATCHES+=("${FILESDIR}"/${PN}-0.18.4.0-external-supercop.patch)
+       fi
        local mycmakeargs=(
                # TODO: Update CMake to install built libraries (help wanted)
                -DBUILD_SHARED_LIBS=OFF

Reply via email to