games-emulation/mupen64plus-qt-1.17: tweak qt6 build and dependencies

Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
This commit is contained in:
Samuel Bauer
2026-02-19 20:45:55 +01:00
parent 3a04a78a83
commit 52ec7752f9

View File

@@ -1,9 +1,9 @@
# Copyright 2018-2025 Gentoo Authors
# Copyright 2018-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
inherit cmake desktop
DESCRIPTION="A basic launcher for Mupen64Plus"
HOMEPAGE="https://github.com/dh4/mupen64plus-qt"
@@ -13,16 +13,24 @@ LICENSE="BSD"
SLOT="0"
RDEPEND="
dev-libs/quazip[qt6]
>=dev-libs/quazip-1.5
dev-qt/qtbase:6[gui,network,sql,widgets,xml]
"
DEPEND=">=games-emulation/mupen64plus-core-2.5
${RDEPEND}"
src_prepare() {
sed -i -e '/NO_UNSUPPORTED_PLATFORM_ERROR/aNO_PLUGINS' \
CMakeLists.txt
cmake_src_prepare
}
src_install() {
cmake_src_install
# local fix for: qt_generate_deploy_app_script
rm -rf "${D}"/usr/$(get_libdir)/ \
"${D}"/usr/plugins/ \
"${D}"/usr/lib64/qt6/plugins/ \
"${D}"/usr/bin/qt.conf || die
mkdir -p "${D}"/usr/share/qt6 || die
mv "${D}"/usr/translations "${D}"/usr/share/qt6/ || die
@@ -30,4 +38,8 @@ src_install() {
echo mv "${i}" "${i/qt_/mupen64plus-qt_}"
mv "${i}" "${i/qt_/mupen64plus-qt_}" || die
done
doman resources/${PN}.6
doicon resources/images/${PN}.png
insinto /usr/share/applications
doins resources/${PN}.desktop
}