Skip to content

Commit

Permalink
games-emulation/mgba: do preinst shader merge workaround in live
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ionenwks committed Jan 8, 2024
1 parent 30a7a22 commit 178b678
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions games-emulation/mgba/mgba-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 178b678

Please sign in to comment.