commit:     0def01c726e66b580a7eef4d1c4fc47de9a3384d
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu May  1 07:11:02 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu May  1 07:34:48 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0def01c7

games-emulation/pcsx2: update live

Have not really looked into pluto(s)vg packages to know if they
should have one or if pcsx2 upstream should be using pkg-config,
so just doing a quick workaround for now.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../pcsx2/files/pcsx2-2.3.275-missing-header.patch           |  7 +++++++
 .../pcsx2/files/pcsx2-2.3.309-pluto-pkgconf.patch            | 12 ++++++++++++
 games-emulation/pcsx2/pcsx2-9999.ebuild                      |  4 ++++
 3 files changed, 23 insertions(+)

diff --git a/games-emulation/pcsx2/files/pcsx2-2.3.275-missing-header.patch 
b/games-emulation/pcsx2/files/pcsx2-2.3.275-missing-header.patch
new file mode 100644
index 000000000000..1c16806f1249
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-2.3.275-missing-header.patch
@@ -0,0 +1,7 @@
+GSHwHack.cpp:799:55: error: no member named 'exp2' in namespace 'std'
+--- a/pcsx2/GS/Renderers/HW/GSHwHack.cpp
++++ b/pcsx2/GS/Renderers/HW/GSHwHack.cpp
+@@ -7,2 +7,3 @@
+ #include "GS/GSUtil.h"
++#include <cmath>
+ 

diff --git a/games-emulation/pcsx2/files/pcsx2-2.3.309-pluto-pkgconf.patch 
b/games-emulation/pcsx2/files/pcsx2-2.3.309-pluto-pkgconf.patch
new file mode 100644
index 000000000000..4cae3001ca13
--- /dev/null
+++ b/games-emulation/pcsx2/files/pcsx2-2.3.309-pluto-pkgconf.patch
@@ -0,0 +1,12 @@
+--- a/cmake/SearchForStuff.cmake
++++ b/cmake/SearchForStuff.cmake
+@@ -22,2 +22,5 @@
+-find_package(plutovg 0.0.13 REQUIRED)
+-find_package(plutosvg 0.0.6 REQUIRED)
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(plutovg REQUIRED IMPORTED_TARGET plutovg)
++alias_library(plutovg::plutovg PkgConfig::plutovg)
++pkg_check_modules(plutosvg REQUIRED IMPORTED_TARGET plutosvg)
++alias_library(plutosvg::plutosvg PkgConfig::plutosvg)
+@@ -74 +76,0 @@
+-              find_package(PkgConfig REQUIRED)

diff --git a/games-emulation/pcsx2/pcsx2-9999.ebuild 
b/games-emulation/pcsx2/pcsx2-9999.ebuild
index 25692d762b9a..583d8bec9d8c 100644
--- a/games-emulation/pcsx2/pcsx2-9999.ebuild
+++ b/games-emulation/pcsx2/pcsx2-9999.ebuild
@@ -41,6 +41,8 @@ COMMON_DEPEND="
        media-libs/libpng:=
        media-libs/libsdl3
        media-libs/libwebp:=
+       media-libs/plutosvg
+       media-libs/plutovg
        media-video/ffmpeg:=
        net-libs/libpcap
        net-misc/curl
@@ -85,6 +87,8 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.7.5835-musl-header.patch
        "${FILESDIR}"/${PN}-1.7.5913-musl-cache.patch
        "${FILESDIR}"/${PN}-2.2.0-missing-header.patch
+       "${FILESDIR}"/${PN}-2.3.275-missing-header.patch
+       "${FILESDIR}"/${PN}-2.3.309-pluto-pkgconf.patch
 )
 
 src_prepare() {

Reply via email to