From f94ad55c430f1b898e74871233703b12e48b8fce Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Fri, 31 Jul 2026 18:40:37 +0800 Subject: Portage's ${DISTDIR} replacing Downloads on Gentoo Still hardcoded with `/var/cache/distfiles`, which should still be the most common at the time of this commit. This is so there's no need for the Discord patch in the ebuild code. --- indra/cmake/Discord.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/cmake/Discord.cmake b/indra/cmake/Discord.cmake index 270b4c09a6..005e548f08 100644 --- a/indra/cmake/Discord.cmake +++ b/indra/cmake/Discord.cmake @@ -8,8 +8,13 @@ target_compile_definitions(ll::discord_sdk INTERFACE LL_DISCORD=1) #use_prebuilt_binary(discord_sdk) if (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/discord_sdk_installed OR NOT ${discord_sdk_installed} EQUAL 0) + if (${LINUX_DISTRO} MATCHES gentoo) + set(PREFIX_PATH /var/cache/distfiles) + else () + set(PREFIX_PATH $ENV{HOME}/Downloads) + endif () file(ARCHIVE_EXTRACT - INPUT $ENV{HOME}/Downloads/DiscordSocialSdk-1.10.18247.zip + INPUT ${PREFIX_PATH}/DiscordSocialSdk-1.10.18247.zip DESTINATION ${CMAKE_BINARY_DIR} ) file(MAKE_DIRECTORY ${LIBS_PREBUILT_DIR}/include/discord_sdk) -- cgit v1.3