commit:     678d19a3b702de3980205a68b529491e9e3a35aa
Author:     Erica Nebula <EricaNebula <AT> Proton <DOT> me>
AuthorDate: Wed Jun  4 03:32:30 2025 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Wed Jun  4 21:25:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=678d19a3

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:
https://github.com/RPCS3/rpcs3/commit/38289f3bc1d711aa8b9d801668f8c9b8059d35df

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

Signed-off-by: Erica Nebula <EricaNebula <AT> Proton.me>

 games-emulation/rpcs3/rpcs3-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-emulation/rpcs3/rpcs3-9999.ebuild 
b/games-emulation/rpcs3/rpcs3-9999.ebuild
index f3d4960c79..f91c54de26 100644
--- a/games-emulation/rpcs3/rpcs3-9999.ebuild
+++ b/games-emulation/rpcs3/rpcs3-9999.ebuild
@@ -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

Reply via email to