summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-05-19 11:05:16 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-05-19 11:20:10 -0400
commite808632da1235b69f255a013bc21923ff8c064cd (patch)
treebc765a199d149214641b16c1ebc5f8b03a8d3d82 /games-emulation/pcsx2
parentapp-emacs/pymacs: drop py3.7 and add py3.10 compat (diff)
downloadgentoo-e808632da1235b69f255a013bc21923ff8c064cd.tar.gz
gentoo-e808632da1235b69f255a013bc21923ff8c064cd.tar.bz2
gentoo-e808632da1235b69f255a013bc21923ff8c064cd.zip
games-emulation/pcsx2: fix live unbundling, now does use zstd
Thanks-to: Samuel Bauer Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-emulation/pcsx2')
-rw-r--r--games-emulation/pcsx2/pcsx2-9999.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild b/games-emulation/pcsx2/pcsx2-9999.ebuild
index 0d816ee8c404..6ec992906f64 100644
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild
+++ b/games-emulation/pcsx2/pcsx2-9999.ebuild
@@ -24,6 +24,7 @@ RESTRICT="!test? ( test )"
RDEPEND="
app-arch/xz-utils
+ app-arch/zstd:=
dev-cpp/rapidyaml:=
dev-libs/glib:2
dev-libs/libaio
@@ -72,14 +73,15 @@ src_prepare() {
cmake_src_prepare
# unbundle, use sed over patch for less chances to break -9999
- # (zstd is only used by libzip, so can remove entirely)
sed -e '/add_subdir.*cubeb/c\find_package(cubeb REQUIRED)' \
-e '/add_subdir.*libchdr/c\pkg_check_modules(chdr REQUIRED IMPORTED_TARGET libchdr)' \
-e '/add_subdir.*libzip/c\find_package(libzip REQUIRED)' \
- -e '/add_subdir.*zstd/d' \
+ -e '/add_subdir.*zstd/c\pkg_check_modules(zstd REQUIRED IMPORTED_TARGET libzstd)' \
-e '/compile_options(\(cubeb\|chdr-static\|speex\)/d' \
-i cmake/SearchForStuff.cmake || die
- sed -i 's/chdr-static/PkgConfig::chdr/' pcsx2/CMakeLists.txt || die
+ sed -e 's/chdr-static/PkgConfig::chdr/' \
+ -e 's/Zstd::Zstd/PkgConfig::zstd/' \
+ -i pcsx2/CMakeLists.txt || die
# pulseaudio is only used for usb-mic, not audio output
use pulseaudio || > cmake/FindPulseAudio.cmake || die