mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
Update done using: ``` git grep -l sys-libs/zlib sys-* | xargs sed -i -e s@sys-libs/zlib@virtual/zlib@g git grep -l virtual/zlib-ng sys-* | xargs sed -i -e s@virtual/zlib-ng@sys-libs/zlib-ng@g git diff --name-only | xargs copybump git diff --name-only | xargs grep -l PYTHON_COMPAT | xargs gpy-impl -@dead pkgcheck scan --commits -c SourcingCheck,VisibilityCheck --exit error ``` Plus reverts in sys-libs/minizip-ng, sys-libs/zlib-ng and profiles. Signed-off-by: Michał Górny <mgorny@gentoo.org>
82 lines
2.1 KiB
Bash
82 lines
2.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
LUA_COMPAT=( lua5-1 luajit )
|
|
inherit cmake flag-o-matic 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]
|
|
virtual/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() {
|
|
# It is literally called "attic". It is full of files that weren't deleted
|
|
# from a VCS, just moved into the trashbin. We should NOT care about these
|
|
# files, but, they trigger QA check false positives for cmake 4.
|
|
rm -r attic/ || die "failed to remove packrat files in attic/"
|
|
|
|
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() {
|
|
# -Werror=odr
|
|
# https://bugs.gentoo.org/959771
|
|
# https://github.com/TASEmulators/fceux/commit/e2ac013cbb12350bd21fefdbe5a6aa251e171fe8
|
|
#
|
|
# Fixed after 2.6.6 -- retest on next version bump and remove.
|
|
filter-lto
|
|
|
|
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
|
|
}
|