commit:     f81dbcf454b91dd47c1763ce879ed4208297c90b
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 31 15:46:13 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Jan  1 12:30:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f81dbcf4

games-emulation/ppsspp: properly pick up python

Closes: https://bugs.gentoo.org/800905
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 .../ppsspp/{ppsspp-1.14.1.ebuild => ppsspp-1.14-r1.ebuild}       | 9 ++++++++-
 .../ppsspp/{ppsspp-1.14.ebuild => ppsspp-1.14.1-r1.ebuild}       | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/games-emulation/ppsspp/ppsspp-1.14.1.ebuild 
b/games-emulation/ppsspp/ppsspp-1.14-r1.ebuild
similarity index 90%
rename from games-emulation/ppsspp/ppsspp-1.14.1.ebuild
rename to games-emulation/ppsspp/ppsspp-1.14-r1.ebuild
index 97e3e57bd6db..b8d1f94a03d8 100644
--- a/games-emulation/ppsspp/ppsspp-1.14.1.ebuild
+++ b/games-emulation/ppsspp/ppsspp-1.14-r1.ebuild
@@ -3,7 +3,9 @@
 
 EAPI=8
 
-inherit xdg cmake
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-any-r1 xdg cmake
 
 DESCRIPTION="A PSP emulator written in C++"
 HOMEPAGE="https://www.ppsspp.org/
@@ -37,12 +39,17 @@ RDEPEND="
        !qt5? ( media-libs/libsdl2[X,opengl,sound,video] )
 "
 DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-CMakeLists-flags.patch
        "${FILESDIR}"/${PN}-disable-ccache-autodetection.patch
 )
 
+pkg_setup() {
+       python-any-r1_pkg_setup
+}
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON

diff --git a/games-emulation/ppsspp/ppsspp-1.14.ebuild 
b/games-emulation/ppsspp/ppsspp-1.14.1-r1.ebuild
similarity index 90%
rename from games-emulation/ppsspp/ppsspp-1.14.ebuild
rename to games-emulation/ppsspp/ppsspp-1.14.1-r1.ebuild
index 97e3e57bd6db..b8d1f94a03d8 100644
--- a/games-emulation/ppsspp/ppsspp-1.14.ebuild
+++ b/games-emulation/ppsspp/ppsspp-1.14.1-r1.ebuild
@@ -3,7 +3,9 @@
 
 EAPI=8
 
-inherit xdg cmake
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit python-any-r1 xdg cmake
 
 DESCRIPTION="A PSP emulator written in C++"
 HOMEPAGE="https://www.ppsspp.org/
@@ -37,12 +39,17 @@ RDEPEND="
        !qt5? ( media-libs/libsdl2[X,opengl,sound,video] )
 "
 DEPEND="${RDEPEND}"
+BDEPEND="${PYTHON_DEPS}"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-CMakeLists-flags.patch
        "${FILESDIR}"/${PN}-disable-ccache-autodetection.patch
 )
 
+pkg_setup() {
+       python-any-r1_pkg_setup
+}
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON

Reply via email to