diff options
Diffstat (limited to 'games-emulation/fceux')
-rw-r--r-- | games-emulation/fceux/Manifest | 4 | ||||
-rw-r--r-- | games-emulation/fceux/fceux-2.4.0.ebuild | 48 | ||||
-rw-r--r-- | games-emulation/fceux/files/fceux-2.4.0-desktop.patch | 18 | ||||
-rw-r--r-- | games-emulation/fceux/files/fceux-2.4.0-no-git.patch | 12 |
4 files changed, 82 insertions, 0 deletions
diff --git a/games-emulation/fceux/Manifest b/games-emulation/fceux/Manifest index d8e200ebc7a0..1aa8f07b4120 100644 --- a/games-emulation/fceux/Manifest +++ b/games-emulation/fceux/Manifest @@ -1,4 +1,8 @@ AUX fceux-2.2.2-warnings.patch 1174 BLAKE2B 5b2076015d005a75ab97b586bb2af022b53a8d1724ef0becac808606366f3ba2f64e97c7073bb3f152d337c248ea91cfb15df81e2d1c5f3ebaf94f0defea3ae1 SHA512 03f7ff47f18982eb5fc7b0c942313fb6328412fe64c9b07bf97a85e25eb73c926b362ce5da789ebc7dff70f9d3d11e9df9e033e5a3ddd8fdee6c712471806b97 +AUX fceux-2.4.0-desktop.patch 447 BLAKE2B c9dc55fc34d990de50a1897cc9d1fe8abb5060336ae7b227ac1b07e28ef89d15e202be790ec3f8ff0f8280a64b81ae28c98ce1a22e54f57d93b2e3bb04a24b59 SHA512 00a2af80e5dc6f5ddff8e5fc28b94bc2e249798ec44f5f0b9ed414dc8438e1937058f9bab65cbb5b2c9c6dec85af1a51e58f68405dd758db4ec293efbdaf5398 +AUX fceux-2.4.0-no-git.patch 377 BLAKE2B 8b0be40a0eba5249f73942ea774dc0a37e73ac71fe1684d01551cd96876878d53219c0744ba0e6789c3663c56e58fccc2a2a450b03207219c76e2c10b04ea679 SHA512 6c67d5b823a2b70d6982d9f911edab65c0bcf2cf5faf1ae00004201aefe99d5feae4592204c2586eaa43affff6d05f2e6e3b9274add4713073c0e1cfb519465d DIST fceux-2.3.0.src.tar.gz 20779030 BLAKE2B 0d9a0e1f326bdcde4e360a03755c9d807a59e3f3826017e2923527f3ec214bec4c9737f98a8abc4e4971098d127ce8e95eb4142fa8d0bd71109190e6d2c93861 SHA512 46b53f0c4c790ae4f7d5e800adf81cce3c7ccf4b06f972d46e29c0170485e291516709a8c28b26c762d535453e280a6c6de935869c7674bb135c3dca2e266407 +DIST fceux-2.4.0.tar.gz 21807471 BLAKE2B 5b4d5e9438cfc974cb5ed1838b0845a1d125366fcfbe4ad72c1a5da7caed7bb763a7c66933933f61223abb9dc4c25f0ac7875a0751d122bf75e8567ca5de6cc4 SHA512 3f53db1091e28c91bff90a2d6c77bd3c022a7c20a29b07e6cb88e9ae4795ce7f9e68d15ac0f90721472f8c262907a2564e0be7adc8df2eb3ef252215717f30a0 EBUILD fceux-2.3.0.ebuild 1378 BLAKE2B ce4eec0490df5b30a26ad8411bf8ca4c3687db5258c3b10f9660544bf922a15422deaa14be9d8b14f77e1308bd810976b9a8843bffe80c4e27ccd670101c980d SHA512 341834e56f3fa6a81c335364a0bc072bd1fe2b18a005b8a8996d62c263c208ead299de6ca69bd2724d5dd20a9b6671bd80c9f02bfddfb9266d16bfb748af04e7 +EBUILD fceux-2.4.0.ebuild 1195 BLAKE2B 21cebd383bfadd592292137a98cf8fe9f1c31365c8d6a4da8692210caae5f8e3866ec34e8644383ad8f5b4b55e6ec213a618069b9dc11d526111e3ce5213805a SHA512 012fc6975d98f402fbb109818caef9f655d56d993471c05f033c6edf41cc65a135cb5c5e09b1ffc9863354a4ae62bb3f8b8a7090b99ea90d7479dba32a56d7cf MISC metadata.xml 386 BLAKE2B 7d677f544e044d228273e576a0c61685180b3dbf785d58b1ec8c4b70b5c88ba741aba1e2c293a47e73a14834e83645e3455bb74207c67e6858bab5c9ab0dfb44 SHA512 376ec02a252d5915d5752f85924ce821d38e3da0f62ea18627bb00848aafd846e5c86cdc6cae824e08897b997ed90e1481ab1b831c23d0f4ceb5c5c9c0e35bfa diff --git a/games-emulation/fceux/fceux-2.4.0.ebuild b/games-emulation/fceux/fceux-2.4.0.ebuild new file mode 100644 index 000000000000..b82b752cf01d --- /dev/null +++ b/games-emulation/fceux/fceux-2.4.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-1 ) + +inherit xdg cmake lua-single + +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" +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] + media-libs/x264:= + sys-libs/zlib:=[minizip]" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.2-warnings.patch + "${FILESDIR}"/${P}-desktop.patch + "${FILESDIR}"/${P}-no-git.patch +) + +DOCS=( README TODO-SDL changelog.txt documentation/. readme.md ) + +src_install() { + 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 +} diff --git a/games-emulation/fceux/files/fceux-2.4.0-desktop.patch b/games-emulation/fceux/files/fceux-2.4.0-desktop.patch new file mode 100644 index 000000000000..e1f924be5246 --- /dev/null +++ b/games-emulation/fceux/files/fceux-2.4.0-desktop.patch @@ -0,0 +1,18 @@ +Remove hardcoded paths from .desktop, not replacing with +make_desktop_entry given upstream's also defines MimeType. +--- a/fceux.desktop ++++ b/fceux.desktop +@@ -7,4 +7,4 @@ + Comment=Emulate NES ROMs +-Exec=/usr/bin/fceux %f +-Icon=/usr/share/pixmaps/fceux1.png ++Exec=fceux %f ++Icon=fceux1 + Terminal=false +@@ -17,3 +17,2 @@ + Exec=fceux -f 1 +-OnlyShowIn=Unity + [Desktop Action DefaultConfig] +@@ -21,2 +20 @@ + Exec=fceux --no-config 1 +-OnlyShowIn=Unity diff --git a/games-emulation/fceux/files/fceux-2.4.0-no-git.patch b/games-emulation/fceux/files/fceux-2.4.0-no-git.patch new file mode 100644 index 000000000000..fe9a7d35b46b --- /dev/null +++ b/games-emulation/fceux/files/fceux-2.4.0-no-git.patch @@ -0,0 +1,12 @@ +Prevent meaningless use of git (QA notice if missing) in a release. +--- a/scripts/genGitHdr.sh ++++ b/scripts/genGitHdr.sh +@@ -8,6 +8,6 @@ + echo "Output File: $OUTPUT_DIR/$FILE"; + +-GIT_URL=`git config --get remote.origin.url`; +-GIT_REV=`git rev-parse HEAD`; ++GIT_URL= ++GIT_REV= + + echo "// fceux_git_info.cpp -- DO NOT EDIT: This file is auto-generated at build" >| $TMP_FILE; |