commit:     a6d0419f574de0a3e4ebb38873e477ce91597607
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 31 20:14:37 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jan  1 08:55:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6d0419f

games-emulation/fceux: Drop IUSE qt6

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 games-emulation/fceux/fceux-2.6.6-r2.ebuild | 69 +++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/games-emulation/fceux/fceux-2.6.6-r2.ebuild 
b/games-emulation/fceux/fceux-2.6.6-r2.ebuild
new file mode 100644
index 000000000000..3fd7da408194
--- /dev/null
+++ b/games-emulation/fceux/fceux-2.6.6-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-1 luajit )
+inherit cmake lua-single xdg
+
+DESCRIPTION="Portable Famicom/NES emulator, an evolution of the original FCE 
Ultra"
+HOMEPAGE="https://fceux.com/";
+SRC_URI="
+       https://github.com/TASEmulators/fceux/archive/refs/tags/v${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="archive ffmpeg x264 x265"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}
+       dev-qt/qtbase:6[gui,opengl,widgets,-gles2-only]
+       media-libs/libglvnd
+       media-libs/libsdl2[joystick,sound,threads(+),video]
+       sys-libs/zlib:=[minizip]
+       archive? ( app-arch/libarchive:= )
+       ffmpeg? ( media-video/ffmpeg:= )
+       x264? ( media-libs/x264:= )
+       x265? ( media-libs/x265:= )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.4.0-desktop.patch
+       "${FILESDIR}"/${PN}-2.4.0-no-git.patch
+       "${FILESDIR}"/${PN}-2.6.6-luajit.patch
+       "${FILESDIR}"/${PN}-2.6.6-no-glx.patch
+)
+
+src_prepare() {
+       cmake_src_prepare
+
+       local use
+       for use in archive:libarchive ffmpeg:libav x264 x265; do
+               use ${use%:*} ||
+                       sed -i "/check_modules( ${use#*:} /Id" 
src/CMakeLists.txt || die
+       done
+
+       rm output/*.{chm,dll} || die # windows-only
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DGLVND=yes
+               -DPUBLIC_RELEASE=yes
+               -DQT6=ON
+       )
+
+       cmake_src_configure
+}
+
+src_install() {
+       local DOCS=( README TODO-SDL changelog.txt documentation/. readme.md )
+       cmake_src_install
+
+       rm "${ED}"/usr/share/doc/${PF}/fceux{,-net-server}.6 || die # duplicate
+       rm "${ED}"/usr/share/man/man6/fceux-net-server.6 || die # not used
+}

Reply via email to