summaryrefslogtreecommitdiff
path: root/games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-07-20 19:47:58 +0800
committerErik Kundiman <erik@megapahit.org>2025-07-20 19:57:36 +0800
commit28ca8d280e2ea840308dd9802e5b58ee9119ab46 (patch)
treecdb27001a1594da904cdfb63b24a5bcae93036f3 /games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch
parent2dff513adad428228a51a6790bd61bb27204a95d (diff)
Megapahit viewer 7.2.0-r54105 ebuild
Introducing the new discord (for Discord Social SDK) USE flag, which is off by default. I don't know how to pass the value of Portage's ${DISTDIR} dynamically to the patched file yet, so I hardcoded it with `/var/cache/distfiles`, which should be the most common at the time of this writing.
Diffstat (limited to 'games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch')
-rw-r--r--games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch b/games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch
new file mode 100644
index 0000000..c92ea0d
--- /dev/null
+++ b/games-rpg/megapahit/files/megapahit-7.2.0-discord_sdk.patch
@@ -0,0 +1,11 @@
+--- viewer/indra/cmake/Discord.cmake.orig 2025-07-20 19:39:36.291295755 +0800
++++ viewer/indra/cmake/Discord.cmake 2025-07-20 19:39:46.854182818 +0800
+@@ -5,7 +5,7 @@
+
+ if (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/discord_installed OR NOT ${discord_installed} EQUAL 0)
+ file(ARCHIVE_EXTRACT
+- INPUT $ENV{HOME}/Downloads/DiscordSocialSdk-1.4.9649.zip
++ INPUT /var/cache/distfiles/DiscordSocialSdk-1.4.9649.zip
+ DESTINATION ${CMAKE_BINARY_DIR}
+ )
+ file(