From 7e274d62e8b898fa51a0ff231983a1e443bc17ad Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 10 Jan 2021 22:00:31 +0100 Subject: [PATCH] Corrected PPSSPP ebuilds --- games-emulation/ppsspp/Manifest | 5 +- games-emulation/ppsspp/ppsspp-1.10.3.ebuild | 71 +++++++++++++++++++++ games-emulation/ppsspp/ppsspp-9999.ebuild | 14 ++-- 3 files changed, 82 insertions(+), 8 deletions(-) create mode 100644 games-emulation/ppsspp/ppsspp-1.10.3.ebuild diff --git a/games-emulation/ppsspp/Manifest b/games-emulation/ppsspp/Manifest index a4f4234..a5ae054 100644 --- a/games-emulation/ppsspp/Manifest +++ b/games-emulation/ppsspp/Manifest @@ -1,3 +1,6 @@ AUX ppsspp 51 BLAKE2B bcc9087f99ca903218cc15d1e1bbbc19f6a47c16a87334be35648290794d70b5b57e1c8ecd4352a7fb0f93d38fe6272df33fbab59ae1d545295b025a6cdfcfef SHA512 65b02e0a66dd18c28df0f040dea71072d7c75e68306941bdf2afbaaf8ec306950b5b98b7b3577003a344b6361901ee162003c77cb3561383680fa2e08a3cc130 AUX ppsspp.desktop 129 BLAKE2B d96cabb2ddf5414f1ee7f319a24e72a90625af8d1e901fef7bc9deabd4e5570edfcf26744f0d357b8fdc0ae45a6c56bd3b39a4eae1d3786395d6c70ed6312ee0 SHA512 00e44bfd3e74a87ab01590392e66b1b1a43d202f30454700331c4da05fd708c481883d8b8c558e4b2cdd8df6bf17c0d26b434a24e128c6851cc54aa3741e4883 -EBUILD ppsspp-9999.ebuild 1438 BLAKE2B 0f213ab253c3d723ece6ce7f94f8c8ae73f671c035327c146a50bca41e9bc9e209f6e1eeea6bfe2d33a7a721b087db4b49f191f878a6c3659020f51e26543499 SHA512 826b6765acb1938eddcf66fee17880b098108847780e46c5e7dd1b0a1f59368b47ac6c681b2c260717b7f239845c1dea49ddeaf6afd1e93e8b6a3e6cda968b1d +EBUILD ppsspp-1.10.3.ebuild 1442 BLAKE2B 3650dd927816858c0118ca3c4fde2889e6495d23b44269966641eac81bdafc509c800aa6fa6ec4a878f50157bc747fb13a2b6fdd3e3d09f516d9232f0396e870 SHA512 dceb5c412bac674306ab82526df2fcb5d332e611b5479f7b9aa24c2ea6852a83d5201ab7704253d1ce56df63023e033f80304894b7e75254d3f3438c09724370 +EBUILD ppsspp-9999.ebuild 1442 BLAKE2B 3650dd927816858c0118ca3c4fde2889e6495d23b44269966641eac81bdafc509c800aa6fa6ec4a878f50157bc747fb13a2b6fdd3e3d09f516d9232f0396e870 SHA512 dceb5c412bac674306ab82526df2fcb5d332e611b5479f7b9aa24c2ea6852a83d5201ab7704253d1ce56df63023e033f80304894b7e75254d3f3438c09724370 +MISC ppsspp-9999.ebuild_ 1438 BLAKE2B 0f213ab253c3d723ece6ce7f94f8c8ae73f671c035327c146a50bca41e9bc9e209f6e1eeea6bfe2d33a7a721b087db4b49f191f878a6c3659020f51e26543499 SHA512 826b6765acb1938eddcf66fee17880b098108847780e46c5e7dd1b0a1f59368b47ac6c681b2c260717b7f239845c1dea49ddeaf6afd1e93e8b6a3e6cda968b1d +MISC psp_files 5904 BLAKE2B 98b55bd752a6abcbb349a543a6fb26c4f45d749057e244848b5b4d014a2bee319823befc47c6fa4eff5f25e59f18e0c4cea40d58916a96552f7b1ea43eccbc79 SHA512 ead70625eac67efc4427d5ae24fd2026bb63c43b97bc8e34de090d442749a5f9c0271dd42d525135c33d9f8d8d71d95e3fdaeaffce0d628235abc1643284a67f diff --git a/games-emulation/ppsspp/ppsspp-1.10.3.ebuild b/games-emulation/ppsspp/ppsspp-1.10.3.ebuild new file mode 100644 index 0000000..1f966a5 --- /dev/null +++ b/games-emulation/ppsspp/ppsspp-1.10.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils cmake-utils git-r3 + +DESCRIPTION="A PSP emulator written in C++." +HOMEPAGE="http://www.ppsspp.org/" +EGIT_REPO_URI="https://github.com/hrydgard/${PN}" +if [[ "$PV" != "9999" ]]; then + # for 9999 use master branch, otherwise use the branch/tag + EGIT_COMMIT="v${PV}" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="qt5 +sdl" +REQUIRED_USE=" + ?? ( sdl ) +" + +RDEPEND="" + +DEPEND=" + sys-libs/zlib + sdl? ( + dev-util/cmake + media-libs/libsdl + media-libs/libsdl2 + ) +" + +src_unpack() { + git-r3_fetch + git-r3_checkout +} + +src_prepare() { + sed -i -e "s#-O3#-O2#g;" "${S}"/CMakeLists.txt || die + sed -i -e "s#-O3#-O2#g;" "${S}"/ffmpeg/linux_*.sh || die + cmake-utils_src_prepare +} + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + exeinto /usr/games + dobin "${FILESDIR}"/ppsspp + exeinto /usr/share/games/"${PN}" + doexe "${WORKDIR}"/"${P}"_build/PPSSPPSDL + insinto /usr/share/games/"${PN}" + doins -r "${WORKDIR}"/"${P}"_build/assets + + insinto /usr/share/icons/ + newins "${WORKDIR}"/"${P}"/source_assets/image/icon_regular_72.png ppsspp-icon.png + domenu "${FILESDIR}"/ppsspp.desktop +} + +pkg_postinst() { + elog "Remember, in order to play games, you have to " + elog "be in the 'games' group. " + elog "Just run 'gpasswd -a games', then have re-login. " +} diff --git a/games-emulation/ppsspp/ppsspp-9999.ebuild b/games-emulation/ppsspp/ppsspp-9999.ebuild index d74f315..1f966a5 100644 --- a/games-emulation/ppsspp/ppsspp-9999.ebuild +++ b/games-emulation/ppsspp/ppsspp-9999.ebuild @@ -1,14 +1,17 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2021 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id$ -EAPI=5 +EAPI=7 inherit eutils cmake-utils git-r3 DESCRIPTION="A PSP emulator written in C++." HOMEPAGE="http://www.ppsspp.org/" -EGIT_REPO_URI="git://github.com/hrydgard/${PN}.git" +EGIT_REPO_URI="https://github.com/hrydgard/${PN}" +if [[ "$PV" != "9999" ]]; then + # for 9999 use master branch, otherwise use the branch/tag + EGIT_COMMIT="v${PV}" +fi LICENSE="GPL-2" SLOT="0" @@ -17,9 +20,6 @@ IUSE="qt5 +sdl" REQUIRED_USE=" ?? ( sdl ) " -#EGIT_SUBMODULES=( '*' '-ffmpeg' ) -# !libav? ( media-video/ffmpeg:= ) -# libav? ( media-video/libav:= ) RDEPEND=""