From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A0604158010 for ; Thu, 9 Feb 2023 20:15:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CF28FE07E0; Thu, 9 Feb 2023 20:15:29 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7E6EE07E0 for ; Thu, 9 Feb 2023 20:15:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CF8A3335D83 for ; Thu, 9 Feb 2023 20:15:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCB2284D for ; Thu, 9 Feb 2023 20:15:25 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1675973707.fc700e6f45e842227a945f8f2d615f2c38e0e3a8.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/fceux/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/fceux/Manifest games-emulation/fceux/fceux-2.6.5.ebuild X-VCS-Directories: games-emulation/fceux/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: fc700e6f45e842227a945f8f2d615f2c38e0e3a8 X-VCS-Branch: master Date: Thu, 9 Feb 2023 20:15:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: de054ec8-cceb-4637-9e8d-8bdcbffa9edb X-Archives-Hash: 9644f199bed64319a535bb17d2b4c84f commit: fc700e6f45e842227a945f8f2d615f2c38e0e3a8 Author: Ionen Wolkens gentoo org> AuthorDate: Thu Feb 9 19:22:51 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Thu Feb 9 20:15:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc700e6f games-emulation/fceux: add 2.6.5 + add USE=qt6 support Qt6 support been there for a while, just wasn't handled here, and with the Qt6 unmasking happening soon may as well add it (still needs USE=-gles2-only, tried and fails to build if used). Also switch to github's "automated" archives for SRC_URI given HOMEPAGE also links to these and sourceforge release tarballs don't include 2.6.5 yet (if ever). Signed-off-by: Ionen Wolkens gentoo.org> games-emulation/fceux/Manifest | 1 + games-emulation/fceux/fceux-2.6.5.ebuild | 66 ++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/games-emulation/fceux/Manifest b/games-emulation/fceux/Manifest index 39b635b3d0fe..f15c51a50550 100644 --- a/games-emulation/fceux/Manifest +++ b/games-emulation/fceux/Manifest @@ -1 +1,2 @@ DIST fceux-2.6.4.tar.gz 23372193 BLAKE2B 0a27bdc1637c4577f175f9afed6318d3020221a2823adc154baffbda005d28cfdf04a00bc0c7b3c9b51ec4b4f5a709e36cb686ec8f11c73f5e7c83e3b84b83e3 SHA512 9fd8b908b652b5b8f120d15bdd43fa1e3475a300e0f1ec7d44965c95ec4bf58f7f9fe9511ea975effaf37f2cc4900e74021b06111dcafecc27affdd9d4e12f2e +DIST fceux-2.6.5.tar.gz 23299626 BLAKE2B 167fbe401635b96ad0c1c07826b1e7b032fa66806a2c395aebcae9d2b4295a327d2abad960a883751da43baf49f91276dd6521692406ce610df7c1ce167006ca SHA512 3d37583d1917783513f05bd215437401aacda3bd1930238212cbbdd6ba105236028066d7198bfd8182e6d55ded7ce293f1e5d23295d2b730ec800dc5e5652598 diff --git a/games-emulation/fceux/fceux-2.6.5.ebuild b/games-emulation/fceux/fceux-2.6.5.ebuild new file mode 100644 index 000000000000..04832332f99f --- /dev/null +++ b/games-emulation/fceux/fceux-2.6.5.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 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="https://github.com/TASEmulators/fceux/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ffmpeg qt6 x264 x265" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + ${LUA_DEPS} + qt6? ( dev-qt/qtbase:6[gui,opengl,widgets,-gles2-only] ) + !qt6? ( + 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.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_configure() { + local mycmakeargs=( + -DPUBLIC_RELEASE=yes + -DQT6=$(usex qt6) + ) + + cmake_src_configure +} + +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 +}