commit:     2815d84c7eb72e1c5a955d34219dc40e1790614a
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Sun Jun 22 15:46:19 2025 +0000
Commit:     Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Sun Jun 22 15:48:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2815d84c

net-p2p/monero: customize the release string

Closes: https://bugs.gentoo.org/958252
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 .../{monero-0.18.4.0-r4.ebuild => monero-0.18.4.0-r5.ebuild}      | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/net-p2p/monero/monero-0.18.4.0-r4.ebuild 
b/net-p2p/monero/monero-0.18.4.0-r5.ebuild
similarity index 92%
rename from net-p2p/monero/monero-0.18.4.0-r4.ebuild
rename to net-p2p/monero/monero-0.18.4.0-r5.ebuild
index bddbe46584..84f85451a6 100644
--- a/net-p2p/monero/monero-0.18.4.0-r4.ebuild
+++ b/net-p2p/monero/monero-0.18.4.0-r5.ebuild
@@ -59,6 +59,14 @@ PATCHES=(
        "${FILESDIR}"/${PN}-0.18.4.0-cmake-4.patch
 )
 
+src_prepare() {
+       # The build system does not recognize the release tarball (bug?)
+       # so we patch the GitVersion file.
+       # Change the release string from "unknown" to "gentoo-${PR}"
+       sed -i "s/unknown/gentoo-${PR}/g" cmake/GitVersion.cmake || die
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                # TODO: Update CMake to install built libraries (help wanted)

Reply via email to