games-emulation/rpcs3: Update hidapi unbundling regex

One of the hidapi unbundling steps in the ebuild is to replace
"hidapi.h" with <hidapi/hidapi.h>, but that include line was recently
changed from "hidapi.h" to <hidapi.h> so the regex does nothing because
it specifically looks for and replaces the quotes. This leads to a
compile error claiming hidapi.h could not be found.

The change was made in this commit:
38289f3bc1

I am just updating the regex to look for < and > instead.

Signed-off-by: Erica Nebula <EricaNebula@Proton.me>
This commit is contained in:
Erica Nebula
2025-06-03 22:32:30 -05:00
parent 8a2f2aba76
commit 678d19a3b7

View File

@@ -109,7 +109,7 @@ src_prepare() {
sed -i -e '/find_program(CCACHE_FOUND ccache)/d' CMakeLists.txt || die
# Unbundle hidapi
sed -i -e '/hidapi\.h/{s:":<hidapi/:;s/"/>/}' rpcs3/Input/hid_pad_handler.h || die
sed -i -e '/hidapi\.h/{s:<:<hidapi/:;s/>/>/}' rpcs3/Input/hid_pad_handler.h || die
sed -i -e '/hidapi/d' 3rdparty/CMakeLists.txt || die
sed -i -e '1afind_package(PkgConfig REQUIRED)\npkg_check_modules(hidapi-hidraw REQUIRED hidapi-hidraw)' \
rpcs3/CMakeLists.txt || die