games-emulation/rpcs3: fix build, remove some files

Add new git submodules that are needed:
(zstd, stblib and openal-soft)

Remove some files that shouldn't be needed:
(/usr/share/rpcs3/{git,test})

Closes: https://bugs.gentoo.org/934194
Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
This commit is contained in:
Kostadin Shishmanov 2024-06-13 14:55:40 +03:00
parent e363dda0e8
commit 3891a6901a
No known key found for this signature in database
GPG Key ID: 0C0D0DF86C3C2269

View File

@ -17,7 +17,10 @@ DESCRIPTION="PS3 emulator/debugger"
HOMEPAGE="https://rpcs3.net/"
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/RPCS3/rpcs3"
EGIT_SUBMODULES=( 'asmjit' '3rdparty/glslang' '3rdparty/miniupnp/miniupnp' '3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl' '3rdparty/SoundTouch/soundtouch' )
EGIT_SUBMODULES=(
'asmjit' '3rdparty/glslang' '3rdparty/miniupnp/miniupnp' '3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl'
'3rdparty/SoundTouch/soundtouch' '3rdparty/zstd/zstd' '3rdparty/stblib/stb' '3rdparty/OpenAL/openal-soft'
)
# Delete sources when ensuring yaml-cpp compiled with fexceptions
EGIT_SUBMODULES+=( '3rdparty/yaml-cpp' )
inherit git-r3
@ -153,3 +156,10 @@ src_configure() {
-e 's/FFMPEG_LIB_AVUTIL-NOTFOUND/avutil/' -e 's/FFMPEG_LIB_SWSCALE-NOTFOUND/swscale/' \
-e 's/FFMPEG_LIB_SWRESAMPLE-NOTFOUND/swresample/' "${BUILD_DIR}"/build.ninja || die
}
src_install() {
cmake_src_install
# remove unneccessary files to save some space
rm -rf "${ED}/usr/share/rpcs3/"{git,test} || die
}