commit: 178b678803ca6a2b6bfd33033de41866142997cb
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 8 11:45:12 2024 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jan 8 12:57:49 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=178b6788
games-emulation/mgba: do preinst shader merge workaround in live
See ebuild comment. Users that have been using 9999 may need to
manually delete these directories to get shaders to be merged
(this is otherwise in preparation for the 0.11.0 release).
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-emulation/mgba/mgba-9999.ebuild | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/games-emulation/mgba/mgba-9999.ebuild
b/games-emulation/mgba/mgba-9999.ebuild
index 91e0309f70ac..d4ce0e18832b 100644
--- a/games-emulation/mgba/mgba-9999.ebuild
+++ b/games-emulation/mgba/mgba-9999.ebuild
@@ -117,3 +117,12 @@ src_install() {
rm -r "${ED}"/usr/share/doc/${PF}/{LICENSE,licenses} || die
}
+
+pkg_preinst() {
+ # hack: .shader/ were directories in <0.11 and are now single (zip)
files
+ # named the same, that leads to portage mis-merging and leaving an empty
+ # directory behind rather than the new file
+ if use gui && has_version '<games-emulation/mgba-0.11[gui]'; then
+ rm -rf -- "${EROOT}"/usr/share/mgba/shaders/*.shader/ || die
+ fi
+}