Commit ce4e417a authored by Daniel Menelkir's avatar Daniel Menelkir

modified: games-emulation/retroarch/Manifest

	deleted:    games-emulation/retroarch/retroarch-1.7.9.ebuild
	deleted:    metadata/md5-cache/games-emulation/retroarch-1.7.9
parent fe03f4be
DIST retroarch-1.7.7.tar.gz 28479975 BLAKE2B 6de37d1c5adcee0f2bdbc3521ee0789d33458e2556e9935bb09bed0b9fdf12a340656f5c02d5c27610a3e614cf9250bd94560fb8ad2c5f93e099174d5f53fa6d SHA512 4ad70f092d1de34de5c4d2d83bae93ca26a1461e45e6bc17bbce9f3d6498d5639a3f97aa5881af29750377a819d4710c94a144450a3af54e0014b60790ba7155
DIST retroarch-1.7.8.tar.gz 26889359 BLAKE2B a4fe3c947f7bbf0340d9c1039d58ab208236ca0f638d2a03f2b7307685db786a63202b2acd897e60eb64ed132b3eaf7e18ef38d85dd6006dbb3e5d743eb16768 SHA512 6f1b4276d8ccf144d3e908f7607c256b5d7be6e9e1f2aa8afdd5fc5b267be59164fe24946ea940974e83af68825f670cdda39232406b470819c8a497e9518514
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# TODO: Rewrite src_prepare() and src_configure()
EAPI=6
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
LIBRETRO_REPO_NAME="libretro/RetroArch"
inherit flag-o-matic libretro python-single-r1
DESCRIPTION="Universal frontend for libretro-based emulators"
HOMEPAGE="http://www.retroarch.com"
SRC_URI="https://github.com/${LIBRETRO_REPO_NAME}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="primaryuri"
S="${WORKDIR}/RetroArch-${PV}"
KEYWORDS=""
LICENSE="GPL-3"
SLOT="0"
#FIXME: Revaluate the "wayland? ( egl )" entry below. Due to unresolved upstream
#issues, Wayland support erroneously requires EGL support. Ideally, it
#shouldn't. When upstream resolves this, remove this entry. See also:
# https://github.com/stefan-gr/abendbrot/issues/7#issuecomment-204541979
IUSE="+7zip alsa +armvfp +assets +cdrom cg cheevos +cores +database debug dispmanx egl ffmpeg gles2 gles3 jack +joypad_autoconfig kms lakka libass libusb +materialui miniupnpc +neon +network openal +opengl osmesa oss +overlays pulseaudio qt5 sdl sdl2 +shaders +truetype +threads +udev v4l2 videocore vulkan wayland X xinerama +xmb +xml xv zlib cpu_flags_x86_sse2 python"
REQUIRED_USE="
|| ( alsa jack openal oss pulseaudio )
|| ( opengl sdl sdl2 vulkan dispmanx )
|| ( kms X wayland videocore )
alsa? ( threads )
arm? ( gles2? ( egl ) )
!arm? (
egl? ( opengl )
gles2? ( opengl )
xmb? ( opengl )
)
cg? ( opengl )
dispmanx? ( videocore arm )
gles2? ( !cg )
gles3? ( gles2 )
kms? ( egl )
libass? ( ffmpeg )
python? ( ${PYTHON_REQUIRED_USE} )
sdl2? ( !sdl )
videocore? ( arm )
vulkan? ( amd64 )
wayland? ( egl )
xinerama? ( X )
xmb? ( assets )
xv? ( X )
lakka? ( assets cores database joypad_autoconfig overlays shaders xmb )
"
RDEPEND="
alsa? ( media-libs/alsa-lib:0= )
assets? ( games-emulation/retroarch-assets:0= )
cg? ( media-gfx/nvidia-cg-toolkit:0= )
cores? ( games-emulation/libretro-meta:0= )
database? ( games-emulation/libretro-database: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:= )
joypad_autoconfig? ( games-emulation/retroarch-joypad-autoconfig:0= )
libass? ( media-libs/libass:0= )
libusb? ( virtual/libusb:1= )
miniupnpc? ( >=net-libs/miniupnpc-2.0:0= )
openal? ( media-libs/openal:0= )
opengl? ( media-libs/mesa:0=[egl?,gles2?] )
osmesa? ( media-libs/mesa:0=[osmesa?] )
overlays? ( games-emulation/common-overlays:0= )
pulseaudio? ( media-sound/pulseaudio:0= )
python? ( ${PYTHON_DEPS} )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtopengl:5
dev-qt/qtwidgets:5
)
sdl? ( >=media-libs/libsdl-1.2.10:0=[joystick] )
sdl2? ( media-libs/libsdl2:0=[joystick] )
shaders? ( vulkan? ( games-emulation/slang-shaders ) )
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= )
xml? ( dev-libs/libxml2:2= )
xv? ( x11-libs/libXv:0= )
zlib? ( sys-libs/zlib:0= )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
PDEPEND="!vulkan? ( shaders? ( games-emulation/glsl-shaders:0= ) )
!vulkan? ( cg? ( games-emulation/common-shaders:0= ) )
"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_prepare() {
epatch \
"${FILESDIR}/${P}-build.patch" \
"${FILESDIR}/${P}-custom_fpu.patch"
# If Python support is enabled, use the currently enabled "python" binary.
if use python; then
sed -i qb/config.libs.sh \
-e "s:%PYTHON_VER%:${EPYTHON/python/}:" \
|| die '"sed" failed.'
fi
# Install application data and pixmaps to standard directories.
sed -i Makefile \
-e 's:$(DESTDIR)$(PREFIX)/share/\(applications\|pixmaps\):$(DESTDIR)usr/share/\1:' \
|| die '"sed" failed.'
# Absolute path of the directory containing Retroarch shared libraries.
export RETROARCH_LIB_DIR="${EROOT}usr/$(get_libdir)/retroarch"
# Absolute path of the directory containing Libretro shared libraries.
export LIBRETRO_LIB_DIR="${EROOT}usr/$(get_libdir)/libretro"
# Replace stock defaults with Gentoo-specific defaults.
sed -i retroarch.cfg \
-e 's:# \(libretro_directory =\):\1 "'${LIBRETRO_LIB_DIR}'/":' \
-e 's:# \(libretro_info_path =\):\1 "'${LIBRETRO_DATA_DIR}'/info/":' \
-e 's:# \(joypad_autoconfig_dir =\):\1 "'${RETROARCH_DATA_DIR}'/autoconfig/":' \
-e 's:# \(assets_directory =\):\1 "'${RETROARCH_DATA_DIR}'/assets/":' \
-e 's:# \(rgui_config_directory =\):\1 "~/.config/retroarch/":' \
-e 's:# \(video_filter_dir =\):\1 "'${RETROARCH_LIB_DIR}'/filters/video/":' \
-e 's:# \(audio_filter_dir =\):\1 "'${RETROARCH_LIB_DIR}'/filters/audio/":' \
-e 's:# \(overlay_directory =\):\1 "'${LIBRETRO_DATA_DIR}'/overlays/":' \
-e 's:# \(content_database_path =\):\1 "'${LIBRETRO_DATA_DIR}'/data/":' \
-e 's:# \(cheat_database_path =\):\1 "'${LIBRETRO_DATA_DIR}'/cheats/":' \
-e 's:# \(system_directory =\):\1 "~/.local/share/retroarch/system/":' \
-e 's:# \(savestate_directory =\):\1 "~/.local/share/retroarch/savestates/":' \
-e 's:# \(savefile_directory =\):\1 "~/.local/share/retroarch/savefiles/":' \
-e 's:# \(screenshot_directory =\):\1 "~/.local/share/retroarch/screenshots/":' \
-e 's:# \(extraction_directory =\):\1 "'${EROOT}'tmp/":' \
-e 's:# \(content_directory =\):\1 "~/":' \
-e 's:# \(rgui_browser_directory =\):\1 "~/":' \
|| die '"sed" failed.'
if use cores; then
sed -i retroarch.cfg \
-e 's:# \(menu_show_core_updater =\) true:\1 "false":'
fi
if use vulkan; then
sed -i retroarch.cfg \
-e 's:# \(video_shader_dir =\):\1 "'${LIBRETRO_DATA_DIR}'/slang-shaders/":' \
|| die '"sed failed.'
else
use cg && sed -i retroarch.cfg \
-e 's:# \(video_shader_dir =\):\1 "'${LIBRETRO_DATA_DIR}'/common-shaders/":'
use cg || use shaders && sed -i retroarch.cfg \
-e 's:# \(video_shader_dir =\):\1 "'${LIBRETRO_DATA_DIR}'/shaders/":'
fi
default_src_prepare
}
src_configure() {
if use cg; then
append-ldflags -L"${EROOT}"opt/nvidia-cg-toolkit/$(get_libdir)
append-cflags -I"${EROOT}"opt/nvidia-cg-toolkit/include
fi
if use lakka; then
export HAVE_LAKKA="1"
fi
if use cdrom; then
export HAVE_CDROM="1"
fi
# Note that OpenVG support is hard-disabled. (See ${RDEPEND} above.)
# miniupnpc requires now at least version 2.0
econf \
$(use_enable 7zip) \
$(use_enable alsa) \
$(use_enable armvfp floathard) \
$(use_enable cheevos) \
$(use_enable cg) \
$(use_enable cpu_flags_x86_sse2 sse) \
$(use_enable dispmanx) \
$(use_enable egl) \
$(use_enable ffmpeg) \
$(use_enable gles2 opengles) \
$(use_enable gles3 opengles3) \
$(use_enable jack) \
$(use_enable kms) \
$(use_enable libass ssa) \
$(use_enable libusb) \
$(use_enable materialui) \
$(use_enable miniupnpc) \
$(use_enable network networking) \
$(use_enable neon) \
$(use_enable openal al) \
$(use_enable opengl) \
$(use_enable osmesa) \
$(use_enable oss) \
$(use_enable pulseaudio pulse) \
$(use_enable python) \
$(use_enable qt5 qt) \
$(use_enable sdl) \
$(use_enable sdl2) \
$(use_enable threads) \
$(use_enable truetype freetype) \
$(use_enable udev) \
$(use_enable v4l2) \
$(use_enable vulkan) \
$(use_enable wayland) \
$(use_enable X x11) \
$(use_enable xinerama) \
$(use_enable xmb) \
$(use_enable xml libxml2) \
$(use_enable xv xvideo) \
$(use_enable zlib) \
$(use_enable videocore) \
--enable-dynamic \
--disable-vg \
--with-man_dir="${EROOT}"usr/share/man/man1
}
src_compile() {
# Filtering all -O* flags in favor of upstream ones
filter-flags -O*
emake $(usex debug "DEBUG=1" "")
emake $(usex debug "build=debug" "build=release") -C gfx/video_filters/
emake $(usex debug "build=debug" "build=release") -C libretro-common/audio/dsp_filters/
}
src_install() {
# Install core files and directories.
emake DESTDIR="${ED}" install
# Install documentation.
dodoc README.md
# Install video filters.
insinto ${RETROARCH_LIB_DIR}/filters/video/
doins "${S}"/gfx/video_filters/*.so
doins "${S}"/gfx/video_filters/*.filt
# Install audio filters.
insinto ${RETROARCH_LIB_DIR}/filters/audio/
#doins "${S}"/audio/audio_filters/*.so
doins "${S}"/libretro-common/audio/dsp_filters/*.dsp
# Preserve empty directories.
keepdir ${LIBRETRO_LIB_DIR}
keepdir ${LIBRETRO_DATA_DIR}/info/
use vulkan || keepdir ${LIBRETRO_DATA_DIR}/shaders/
use vulkan && keepdir ${LIBRETRO_DATA_DIR}/slang-shaders/
keepdir ${LIBRETRO_DATA_DIR}/overlays/
keepdir ${LIBRETRO_DATA_DIR}/cheats/
keepdir ${LIBRETRO_DATA_DIR}/data/
keepdir ${RETROARCH_DATA_DIR}/assets/
keepdir ${RETROARCH_DATA_DIR}/autoconfig/
}
pkg_preinst() {
if ! has_version "<=${CATEGORY}/${PN}-${PVR}" ; then
first_install="1"
else
if [[ "${PV}" < "9999" ]]; then
if has_version "<${CATEGORY}/${PN}-1.3.6-r2"; then
upgrade_info="1"
fi
else
if has_version "<${CATEGORY}/${PN}-9999-r2" ; then
upgrade_info="1"
fi
fi
fi
}
pkg_postinst() {
if [[ "${upgrade_info}" == "1" ]]; then
ewarn ""
ewarn "You need to make sure that all directories exist or you must modify your retroarch.cfg accordingly."
ewarn "To create the needed directories for your user run as \$USER (not as root!):"
ewarn ""
ewarn "\$ mkdir -p ~/.local/share/retroarch/{savestates,savefiles,screenshots,system}"
ewarn ""
fi
if [[ "${upgrade_info}" == "1" ]]; then
ewarn ""
ewarn "The path to cores and datafiles changed to [/usr/lib64/libretro, /usr/share/libretro] due to EAPI 6 update."
ewarn "This can be changed via gui or cfg file found in \"\${HOME}/.config/retroarch/retroarch.cfg\""
ewarn ""
fi
}
DEFINED_PHASES=compile configure install postinst preinst prepare setup
DEPEND=alsa? ( media-libs/alsa-lib:0= ) assets? ( games-emulation/retroarch-assets:0= ) cg? ( media-gfx/nvidia-cg-toolkit:0= ) cores? ( games-emulation/libretro-meta:0= ) database? ( games-emulation/libretro-database: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:= ) joypad_autoconfig? ( games-emulation/retroarch-joypad-autoconfig:0= ) libass? ( media-libs/libass:0= ) libusb? ( virtual/libusb:1= ) miniupnpc? ( >=net-libs/miniupnpc-2.0:0= ) openal? ( media-libs/openal:0= ) opengl? ( media-libs/mesa:0=[egl?,gles2?] ) osmesa? ( media-libs/mesa:0=[osmesa?] ) overlays? ( games-emulation/common-overlays:0= ) pulseaudio? ( media-sound/pulseaudio:0= ) python? ( python_single_target_python3_5? ( dev-lang/python:3.5 ) python_single_target_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_7(-),python_single_target_python3_5(+)?,python_single_target_python3_6(+)?] ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtopengl:5 dev-qt/qtwidgets:5 ) sdl? ( >=media-libs/libsdl-1.2.10:0=[joystick] ) sdl2? ( media-libs/libsdl2:0=[joystick] ) shaders? ( vulkan? ( games-emulation/slang-shaders ) ) 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= ) xml? ( dev-libs/libxml2:2= ) xv? ( x11-libs/libXv:0= ) zlib? ( sys-libs/zlib:0= ) virtual/pkgconfig
DESCRIPTION=Universal frontend for libretro-based emulators
EAPI=6
HOMEPAGE=http://www.retroarch.com
IUSE=+7zip alsa +armvfp +assets +cdrom cg cheevos +cores +database debug dispmanx egl ffmpeg gles2 gles3 jack +joypad_autoconfig kms lakka libass libusb +materialui miniupnpc +neon +network openal +opengl osmesa oss +overlays pulseaudio qt5 sdl sdl2 +shaders +truetype +threads +udev v4l2 videocore vulkan wayland X xinerama +xmb +xml xv zlib cpu_flags_x86_sse2 python python_targets_python3_5 python_targets_python3_6 python_single_target_python3_5 python_single_target_python3_6
LICENSE=GPL-3
PDEPEND=!vulkan? ( shaders? ( games-emulation/glsl-shaders:0= ) ) !vulkan? ( cg? ( games-emulation/common-shaders:0= ) )
RDEPEND=alsa? ( media-libs/alsa-lib:0= ) assets? ( games-emulation/retroarch-assets:0= ) cg? ( media-gfx/nvidia-cg-toolkit:0= ) cores? ( games-emulation/libretro-meta:0= ) database? ( games-emulation/libretro-database: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:= ) joypad_autoconfig? ( games-emulation/retroarch-joypad-autoconfig:0= ) libass? ( media-libs/libass:0= ) libusb? ( virtual/libusb:1= ) miniupnpc? ( >=net-libs/miniupnpc-2.0:0= ) openal? ( media-libs/openal:0= ) opengl? ( media-libs/mesa:0=[egl?,gles2?] ) osmesa? ( media-libs/mesa:0=[osmesa?] ) overlays? ( games-emulation/common-overlays:0= ) pulseaudio? ( media-sound/pulseaudio:0= ) python? ( python_single_target_python3_5? ( dev-lang/python:3.5 ) python_single_target_python3_6? ( dev-lang/python:3.6 ) >=dev-lang/python-exec-2:=[python_targets_python3_5(-)?,python_targets_python3_6(-)?,-python_single_target_jython2_7(-),-python_single_target_pypy(-),-python_single_target_pypy3(-),-python_single_target_python2_7(-),-python_single_target_python3_7(-),python_single_target_python3_5(+)?,python_single_target_python3_6(+)?] ) qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtopengl:5 dev-qt/qtwidgets:5 ) sdl? ( >=media-libs/libsdl-1.2.10:0=[joystick] ) sdl2? ( media-libs/libsdl2:0=[joystick] ) shaders? ( vulkan? ( games-emulation/slang-shaders ) ) 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= ) xml? ( dev-libs/libxml2:2= ) xv? ( x11-libs/libXv:0= ) zlib? ( sys-libs/zlib:0= )
REQUIRED_USE=|| ( alsa jack openal oss pulseaudio ) || ( opengl sdl sdl2 vulkan dispmanx ) || ( kms X wayland videocore ) alsa? ( threads ) arm? ( gles2? ( egl ) ) !arm? ( egl? ( opengl ) gles2? ( opengl ) xmb? ( opengl ) ) cg? ( opengl ) dispmanx? ( videocore arm ) gles2? ( !cg ) gles3? ( gles2 ) kms? ( egl ) libass? ( ffmpeg ) python? ( ^^ ( python_single_target_python3_5 python_single_target_python3_6 ) python_single_target_python3_5? ( python_targets_python3_5 ) python_single_target_python3_6? ( python_targets_python3_6 ) ) sdl2? ( !sdl ) videocore? ( arm ) vulkan? ( amd64 ) wayland? ( egl ) xinerama? ( X ) xmb? ( assets ) xv? ( X ) lakka? ( assets cores database joypad_autoconfig overlays shaders xmb )
RESTRICT=primaryuri
SLOT=0
SRC_URI=https://github.com/libretro/RetroArch/archive/v1.7.9.tar.gz -> retroarch-1.7.9.tar.gz
_eclasses_=desktop b1d22ac8bdd4679ab79c71aca235009d epatch a1bf4756dba418a7238f3be0cb010c54 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 6e6c2737b59a4b982de6fb3ecefd87f8 flag-o-matic 8a43b9830f1e64a7a5fc0a276afa0275 libretro e2e72840da02ef2a21e935c8447187a8 ltprune 2729691420b6deeda2a90b1f1183fb55 multilib 1d91b03d42ab6308b5f4f6b598ed110e preserve-libs ef207dc62baddfddfd39a164d9797648 python-single-r1 3a0fc81f484bfdbd9c2b7448015a36e4 python-utils-r1 08e17157a6807add7db1f8d01e7e391f toolchain-funcs 2f8b8f320bee13b71a8a54cc6d09e08a vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
_md5_=6f7c859cc64f504e95d1ff11a58fd583
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment