From 96a8facc344757b14abc4bccbdba5b8307e8302e Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Sun, 8 Jun 2025 15:02:00 +0300 Subject: [PATCH] games-emulation/libretro-dolphin: new package, add 0.0.1_pre20250517 Signed-off-by: Pavel Sobolev --- games-emulation/libretro-dolphin/Manifest | 1 + ...olphin-0.0.1_pre20250517-fix-for-fmt.patch | 18 +++ .../libretro-dolphin-0.0.1_pre20250517.ebuild | 148 ++++++++++++++++++ games-emulation/libretro-dolphin/metadata.xml | 16 ++ 4 files changed, 183 insertions(+) create mode 100644 games-emulation/libretro-dolphin/Manifest create mode 100644 games-emulation/libretro-dolphin/files/libretro-dolphin-0.0.1_pre20250517-fix-for-fmt.patch create mode 100644 games-emulation/libretro-dolphin/libretro-dolphin-0.0.1_pre20250517.ebuild create mode 100644 games-emulation/libretro-dolphin/metadata.xml diff --git a/games-emulation/libretro-dolphin/Manifest b/games-emulation/libretro-dolphin/Manifest new file mode 100644 index 0000000000..d3e381f017 --- /dev/null +++ b/games-emulation/libretro-dolphin/Manifest @@ -0,0 +1 @@ +DIST libretro-dolphin-0.0.1_pre20250517.tar.gz 41706321 BLAKE2B 6659875008484ef9427e16b944ccb1cbb17051ff59da8c4a50c5d32716b386539e6d4d87cad77dfaae8e3476bccd2c601be2d3a6a2cd0a19370d716252fc523e SHA512 0ddd7c799f97b753275742f5c539e1f353a4b63ddccda3dbd2d5384dd54004f7bc194fc76edfcdda41b7108a2c3fd16c853338d41ab7eda437a2d92beb68a58f diff --git a/games-emulation/libretro-dolphin/files/libretro-dolphin-0.0.1_pre20250517-fix-for-fmt.patch b/games-emulation/libretro-dolphin/files/libretro-dolphin-0.0.1_pre20250517-fix-for-fmt.patch new file mode 100644 index 0000000000..e985cc62ae --- /dev/null +++ b/games-emulation/libretro-dolphin/files/libretro-dolphin-0.0.1_pre20250517-fix-for-fmt.patch @@ -0,0 +1,18 @@ +From: Pavel Sobolev +Subject: [PATCH] Print `IOS::HLE::SeekMode` as an int. + +This avoids compilation errors with `>=libfmt-10.0`. + +Signed-off-by: Pavel Sobolev + +--- a/Source/Core/Core/IOS/FS/FileSystemProxy.cpp ++++ b/Source/Core/Core/IOS/FS/FileSystemProxy.cpp +@@ -272,7 +272,7 @@ IPCCommandResult FS::Seek(const SeekRequest& request) + + const Result result = + m_ios.GetFS()->SeekFile(handle.fs_fd, request.offset, IOS::HLE::FS::SeekMode(request.mode)); +- LogResult(result, "Seek({}, 0x{:08x}, {})", handle.name.data(), request.offset, request.mode); ++ LogResult(result, "Seek({}, 0x{:08x}, {})", handle.name.data(), request.offset, static_cast(request.mode)); + if (!result) + return GetFSReply(ConvertResult(result.Error())); + return GetFSReply(*result); diff --git a/games-emulation/libretro-dolphin/libretro-dolphin-0.0.1_pre20250517.ebuild b/games-emulation/libretro-dolphin/libretro-dolphin-0.0.1_pre20250517.ebuild new file mode 100644 index 0000000000..b85edcc523 --- /dev/null +++ b/games-emulation/libretro-dolphin/libretro-dolphin-0.0.1_pre20250517.ebuild @@ -0,0 +1,148 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# This ebuild mirrors the setup done in `games-emulation/dolphin::gentoo` + +EAPI=7 + +LIBRETRO_COMMIT_SHA="a09f78f735f0d2184f64ba5b134abe98ee99c65f" +LIBRETRO_REPO_NAME="libretro/dolphin" + +inherit cmake libretro-core + +DESCRIPTION="Dolphin libretro port" + +LICENSE="GPL-2+ BSD BSD-2 LGPL-2.1+ MIT ZLIB" +SLOT="0" +KEYWORDS="~amd64" +IUSE="bluetooth egl +evdev log profile systemd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/bzip2:= + app-arch/xz-utils + app-arch/zstd:= + dev-libs/hidapi + dev-libs/libfmt:= + dev-libs/lzo:2 + dev-libs/pugixml + dev-libs/xxhash + games-emulation/libretro-info + media-libs/cubeb + + + + + contact@paveloom.dev + Pavel Sobolev + + + Enable evdev input support + Increase logging output + + + https://github.com/libretro/dolphin/issues + libretro/dolphin + +