From 1802aa51102284852250c9c5b0cc19a138a884b2 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 24 Mar 2022 10:16:41 -0400 Subject: games-emulation/fceux: add 2.6.4 Signed-off-by: Ionen Wolkens --- games-emulation/fceux/Manifest | 1 + games-emulation/fceux/fceux-2.6.4.ebuild | 56 ++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 games-emulation/fceux/fceux-2.6.4.ebuild (limited to 'games-emulation') diff --git a/games-emulation/fceux/Manifest b/games-emulation/fceux/Manifest index 92395abc479e..fb6709264ccc 100644 --- a/games-emulation/fceux/Manifest +++ b/games-emulation/fceux/Manifest @@ -1 +1,2 @@ DIST fceux-2.6.3.tar.gz 23355815 BLAKE2B 49984aec5d3d8ca5fcc040bac16cf4af406fce2dbc4cf4a02e386195be5eca09c4b297e73c438b10b865bcd42e8c8b7e33971a30be285c315e183dc018c5b97e SHA512 446a7cd45afb703e2268f3f6d71dc1a0d9da5f67e1121026258c960fdd360775f31dcab97c1da2755abeef10e9c6757c0af2f3cc67ccb63314c84ef6a4700b2b +DIST fceux-2.6.4.tar.gz 23372193 BLAKE2B 0a27bdc1637c4577f175f9afed6318d3020221a2823adc154baffbda005d28cfdf04a00bc0c7b3c9b51ec4b4f5a709e36cb686ec8f11c73f5e7c83e3b84b83e3 SHA512 9fd8b908b652b5b8f120d15bdd43fa1e3475a300e0f1ec7d44965c95ec4bf58f7f9fe9511ea975effaf37f2cc4900e74021b06111dcafecc27affdd9d4e12f2e diff --git a/games-emulation/fceux/fceux-2.6.4.ebuild b/games-emulation/fceux/fceux-2.6.4.ebuild new file mode 100644 index 000000000000..ac55ef93a2b4 --- /dev/null +++ b/games-emulation/fceux/fceux-2.6.4.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-1 ) +inherit cmake lua-single xdg + +DESCRIPTION="Portable Famicom/NES emulator, an evolution of the original FCE Ultra" +HOMEPAGE="https://fceux.com/" +SRC_URI="mirror://sourceforge/fceultra/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ffmpeg x264 x265" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +# TODO: QT6 support (disabled by default) when available in Gentoo +RDEPEND=" + ${LUA_DEPS} + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtopengl:5[-gles2-only] + dev-qt/qtwidgets:5 + media-libs/libglvnd + media-libs/libsdl2[joystick,sound,threads,video] + sys-libs/zlib:=[minizip] + ffmpeg? ( media-video/ffmpeg:= ) + x264? ( media-libs/x264:= ) + x265? ( media-libs/x265:= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.2-warnings.patch + "${FILESDIR}"/${PN}-2.4.0-desktop.patch + "${FILESDIR}"/${PN}-2.4.0-no-git.patch +) + +src_prepare() { + cmake_src_prepare + + use x264 || sed -i '/pkg_check_modules.*X264/d' src/CMakeLists.txt || die + use x265 || sed -i '/pkg_check_modules.*X265/d' src/CMakeLists.txt || die + use ffmpeg || sed -i '/pkg_check_modules.*LIBAV/d' src/CMakeLists.txt || die +} + +src_install() { + local DOCS=( README TODO-SDL changelog.txt documentation/. readme.md ) + cmake_src_install + + # remove unused/duplicate files + rm "${ED}"/usr/share/fceux/{lua5{1,.1}.dll,{fceux,taseditor}.chm} \ + "${ED}"/usr/share/doc/${PF}/fceux{,-net-server}.6 \ + "${ED}"/usr/share/man/man6/fceux-net-server.6 || die +} -- cgit v1.2.3-65-gdbad