commit: 251fdb5768817e7af28a64e380fc91b5ee917388
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Thu Feb 27 22:02:54 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu Feb 27 22:02:54 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=251fdb57
games-emulation/mupen64plus-qt: translations directory
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/mupen64plus-qt/mupen64plus-qt-1.17.ebuild | 8 +++++++-
games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild | 8 +++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/games-emulation/mupen64plus-qt/mupen64plus-qt-1.17.ebuild
b/games-emulation/mupen64plus-qt/mupen64plus-qt-1.17.ebuild
index ccc31916c..e5e24d313 100644
--- a/games-emulation/mupen64plus-qt/mupen64plus-qt-1.17.ebuild
+++ b/games-emulation/mupen64plus-qt/mupen64plus-qt-1.17.ebuild
@@ -23,5 +23,11 @@ src_install() {
cmake_src_install
rm -rf "${D}"/usr/$(get_libdir)/ \
"${D}"/usr/plugins/ \
- "${D}"/usr/bin/qt.conf
+ "${D}"/usr/bin/qt.conf || die
+ mkdir -p "${D}"/usr/share/qt6 || die
+ mv "${D}"/usr/translations "${D}"/usr/share/qt6/ || die
+ for i in "${D}"/usr/share/qt6/translations/*; do
+ echo mv "${i}" "${i/qt_/mupen64plus-qt_}"
+ mv "${i}" "${i/qt_/mupen64plus-qt_}" || die
+ done
}
diff --git a/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
b/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
index 0b72b2108..30242ad3a 100644
--- a/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
+++ b/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
@@ -23,5 +23,11 @@ src_install() {
cmake_src_install
rm -rf "${D}"/usr/$(get_libdir)/ \
"${D}"/usr/plugins/ \
- "${D}"/usr/bin/qt.conf
+ "${D}"/usr/bin/qt.conf || die
+ mkdir -p "${D}"/usr/share/qt6 || die
+ mv "${D}"/usr/translations "${D}"/usr/share/qt6/ || die
+ for i in "${D}"/usr/share/qt6/translations/*; do
+ echo mv "${i}" "${i/qt_/mupen64plus-qt_}"
+ mv "${i}" "${i/qt_/mupen64plus-qt_}" || die
+ done
}