commit:     3eac696ec8007e6ee3d30a53349f898c069e2cf3
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sat Mar  9 05:18:42 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Sat Mar  9 06:02:08 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3eac696e

games-emulation/rpcs3: unbundle glslang

It needs a specific version of vulkan sdks.

Bug: https://bugs.gentoo.org/926213
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 games-emulation/rpcs3/rpcs3-9999.ebuild | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/games-emulation/rpcs3/rpcs3-9999.ebuild 
b/games-emulation/rpcs3/rpcs3-9999.ebuild
index 9d29476c8c..d2202eaaf4 100644
--- a/games-emulation/rpcs3/rpcs3-9999.ebuild
+++ b/games-emulation/rpcs3/rpcs3-9999.ebuild
@@ -8,7 +8,7 @@ inherit cmake flag-o-matic git-r3 xdg
 DESCRIPTION="PS3 emulator/debugger"
 HOMEPAGE="https://rpcs3.net/";
 EGIT_REPO_URI="https://github.com/RPCS3/rpcs3";
-EGIT_SUBMODULES=( 'asmjit' '3rdparty/miniupnp/miniupnp' 
'3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl'
+EGIT_SUBMODULES=( 'asmjit' '3rdparty/glslang' '3rdparty/miniupnp/miniupnp' 
'3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl'
        '3rdparty/SoundTouch/soundtouch' )
 # Delete sources when ensuring yaml-cpp compiled with fexceptions
 EGIT_SUBMODULES+=( '3rdparty/yaml-cpp' )
@@ -40,10 +40,7 @@ DEPEND="
        alsa? ( media-libs/alsa-lib )
        faudio? ( app-emulation/faudio )
        pulseaudio? ( media-libs/libpulse )
-       vulkan? (
-               ~dev-util/glslang-1.3.268
-               ~media-libs/vulkan-loader-1.3.268
-       )
+       vulkan? ( media-libs/vulkan-loader[wayland?] )
        wayland? ( dev-libs/wayland )
 "
 RDEPEND="${DEPEND}"
@@ -75,14 +72,6 @@ src_prepare() {
        # sed -i -e 's/3rdparty::yaml-cpp/yaml-cpp/' rpcs3/Emu/CMakeLists.txt \
        #       rpcs3/rpcs3qt/CMakeLists.txt || die
 
-       # Unbundle glslang SPIRV
-       sed -i -e '/add_subdirectory(glslang/d' \
-               -e '/add_subdirectory(SPIRV/d' \
-               -e '/if(VULKAN_FOUND)/afind_library(SPIRV 
libSPIRV.so)\nfind_library(SPIRV-Tools-opt libSPIRV-Tools-opt.so)\n' \
-               -e 
'/target_link_libraries.*SPIRV/{s/SPIRV-Tools-opt/${&}/;s/SPIRV /${SPIRV} /}' \
-               3rdparty/CMakeLists.txt || die
-       sed -i -e '/#include "SPIRV/{s:":<glslang/:;s/"/>/}' 
rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp || die
-
        cmake_src_prepare
 }
 
@@ -105,7 +94,10 @@ src_configure() {
                -DUSE_VULKAN=$(usex vulkan)
                -DWITH_LLVM=$(usex llvm)
        )
+       # These options are defined conditionally to suppress QA notice
        use faudio && mycmakeargs+=( -DUSE_SYSTEM_FAUDIO=$(usex faudio) )
+       use vulkan && mycmakeargs+=( $(cmake_use_find_package wayland Wayland) )
+
        cmake_src_configure
 
        sed -i -e 's/FFMPEG_LIB_AVFORMAT-NOTFOUND/avformat/' -e 
's/FFMPEG_LIB_AVCODEC-NOTFOUND/avcodec/' \

Reply via email to