commit: 0c4b910ebf0ed46f97ae5150d17587810c3ed246
Author: Rafael Rondão gmail com>
AuthorDate: Wed Jun 14 13:57:39 2023 +
Commit: Rafael Rondão gmail com>
CommitDate: Wed Jun 14 13:58:02 2023 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0c4b910e
games-emulation/RetroArch: new package, add 1.15.0
Signed-off-by: Rafael Rondão gmail.com>
games-emulation/RetroArch/Manifest| 1 +
games-emulation/RetroArch/RetroArch-1.15.0.ebuild | 178 ++
games-emulation/RetroArch/metadata.xml| 48 ++
3 files changed, 227 insertions(+)
diff --git a/games-emulation/RetroArch/Manifest
b/games-emulation/RetroArch/Manifest
new file mode 100644
index 0..2372962b2
--- /dev/null
+++ b/games-emulation/RetroArch/Manifest
@@ -0,0 +1 @@
+DIST RetroArch-1.15.0.tar.gz 49206179 BLAKE2B
0361051780f72646a4cb4fc18a6a534beeff3ccdf55a85b1ae803808ff49dca0516fe5aa2ced8b3e1ad2968fc4484ba65e3f999fccf86c714a32aec122d9091d
SHA512
8981bfa58a4b44befad8dd00a160c2e00ac4a023567f9c31a45707f687afa51c50ac42120685d25039ff305d31e06f9e3e40d47ba7f1800885c2619182b6ab5a
diff --git a/games-emulation/RetroArch/RetroArch-1.15.0.ebuild
b/games-emulation/RetroArch/RetroArch-1.15.0.ebuild
new file mode 100644
index 0..9b75acf87
--- /dev/null
+++ b/games-emulation/RetroArch/RetroArch-1.15.0.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic
+
+DESCRIPTION="RetroArch is a frontend for emulators, game engines and media
players"
+HOMEPAGE="https://www.retroarch.com";
+
+SRC_URI="https://github.com/libretro/RetroArch/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="7zip alsa cg cpu_flags_arm_neon cpu_flags_arm_vfp cpu_flags_x86_sse2
cheevos debug dispmanx +egl filters ffmpeg gles2 gles3 hid jack kms libass
libusb materialui network openal +opengl osmesa oss +ozone +pulseaudio +rgui
sdl sdl2 +truetype +threads udev v4l2 videocore vulkan wayland +X xinerama xmb
xv zlib"
+
+REQUIRED_USE="
+ || ( alsa jack openal oss pulseaudio )
+ || ( opengl sdl sdl2 vulkan dispmanx )
+ || ( kms X wayland videocore )
+ || ( materialui ozone rgui xmb )
+ alsa? ( threads )
+ arm? ( gles2? ( egl ) )
+ !arm? (
+ egl? ( opengl )
+ gles2? ( opengl )
+ )
+ cg? ( opengl )
+ dispmanx? ( videocore arm )
+ gles2? ( !cg )
+ gles3? ( gles2 )
+ kms? ( egl )
+ libass? ( ffmpeg )
+ libusb? ( hid )
+ sdl? ( rgui )
+ sdl2? ( rgui !sdl )
+ videocore? ( arm )
+ vulkan? ( amd64 )
+ wayland? ( egl )
+ xinerama? ( X )
+ xv? ( X )
+"
+
+RDEPEND="
+ alsa? ( media-libs/alsa-lib:0= )
+ cg? ( media-gfx/nvidia-cg-toolkit:0= )
+ arm? ( dispmanx? ( || ( media-libs/raspberrypi-userland:0
media-libs/raspberrypi-userland-bin:0 ) ) )
+ ffmpeg? ( >=media-video/ffmpeg-2.1.3:0= )
+ jack? ( virtual/jack:= )
+ libass? ( media-libs/libass:0= )
+ libusb? ( virtual/libusb:1= )
+ openal? ( media-libs/openal:0= )
+ opengl? ( media-libs/mesa:0=[gles2?] )
+ osmesa? ( media-libs/mesa:0=[osmesa?] )
+ pulseaudio? ( media-sound/pulseaudio:0= )
+ sdl? ( >=media-libs/libsdl-1.2.10:0=[joystick] )
+ sdl2? ( media-libs/libsdl2:0=[joystick] )
+ truetype? ( media-libs/freetype:2= )
+ udev? ( virtual/udev:0=
+ X? ( x11-drivers/xf86-input-evdev:0= )
+ )
+ amd64? ( vulkan? ( media-libs/vulkan-loader:0= ) )
+ v4l2? ( media-libs/libv4l:0= )
+ wayland? ( media-libs/mesa:0=[wayland?] )
+ X? (
+ x11-base/xorg-server:0=
+ >=x11-libs/libxkbcommon-0.4.0:0=
+ )
+ xinerama? ( x11-libs/libXinerama:0= )
+ xv? ( x11-libs/libXv:0= )
+ zlib? ( sys-libs/zlib:0= )
+"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_configure() {
+ if use cg; then
+ append-ldflags
-L"${EPREFIX}/"opt/nvidia-cg-toolkit/$(get_libdir)
+ append-cflags -I"${EPREFIX}/"opt/nvidia-cg-toolkit/include
+ fi
+
+ # Absolute path of the directory containing Retroarch shared libraries.
+ export RETROARCH_LIB_DIR="${EPREFIX}/usr/$(get_libdir)/retroarch"
+
+ if use filters; then
+ # Replace stock defaults with Gentoo-specific defaults.
+ sed -i retroarch.cfg \
+ -e 's:# \(video_filter_dir =\):\1
"/'${RETROARCH_LIB_DIR}'/filters/video/":' \
+ -e 's:# \(audio_filter_dir =\):\1
"/'${RETROARCH_LIB_DIR}'/filters