From f5e3d9dfc57bf4c93f977e1673707cc3656f71c7 Mon Sep 17 00:00:00 2001 From: Elouan Lesteven Date: Thu, 7 May 2026 00:16:40 +0200 Subject: [PATCH] games-emulation/shadps4: new package, add 9999 Signed-off-by: Elouan Lesteven --- games-emulation/shadps4/metadata.xml | 13 +++++++ games-emulation/shadps4/shadps4-9999.ebuild | 43 +++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 games-emulation/shadps4/metadata.xml create mode 100644 games-emulation/shadps4/shadps4-9999.ebuild diff --git a/games-emulation/shadps4/metadata.xml b/games-emulation/shadps4/metadata.xml new file mode 100644 index 0000000000..c036cfbd92 --- /dev/null +++ b/games-emulation/shadps4/metadata.xml @@ -0,0 +1,13 @@ + + + + + elouan.lesteven@protonmail.com + Elouan Lesteven + Primary maintainer + + + shadps4-emu/shadPS4 + https://github.com/shadps4-emu/shadPS4/issues + + diff --git a/games-emulation/shadps4/shadps4-9999.ebuild b/games-emulation/shadps4/shadps4-9999.ebuild new file mode 100644 index 0000000000..c91bbd2c4c --- /dev/null +++ b/games-emulation/shadps4/shadps4-9999.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 + +DESCRIPTION="An early PlayStation 4 emulator for Windows, Linux and macOS written in C++" + +HOMEPAGE="https://github.com/shadps4-emu/shadPS4" + +LLVM_COMPAT=( {19..21} ) +inherit llvm-r2 + +if [ ${PV} = 9999 ]; then + EGIT_BRANCH="main" +else + EGIT_COMMIT="v.${PVR}" +fi + +EGIT_REPO_URI="https://github.com/shadps4-emu/shadPS4.git" +EGIT_SUBMODULES=( '*' ) + +LICENSE="GPL-2" + +SLOT="0" + +BDEPEND="virtual/pkgconfig + $(llvm_gen_dep ' + llvm-core/clang:${LLVM_SLOT}= + llvm-core/llvm:${LLVM_SLOT}= + ') + sys-devel/mold + dev-util/ccache + " + +src_configure() { + local mycmakeargs=( + -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=mold" -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=mold" + -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache + ) + cmake_src_configure +}