commit:     6af24133782dc5b5455cc0a419002d85c0cdb22b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 30 19:32:44 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Aug 30 21:48:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af24133

dev-games/godot: give postinst elog about migration to 4

Not super important given imagine devs would know this well, and need
to launch as "godot4" so won't be a surprise. But still won't hurt for
when this gets keyworded.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-games/godot/godot-4.0_alpha14.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dev-games/godot/godot-4.0_alpha14.ebuild 
b/dev-games/godot/godot-4.0_alpha14.ebuild
index 9844ed38787e..2e22a6f9fe5a 100644
--- a/dev-games/godot/godot-4.0_alpha14.ebuild
+++ b/dev-games/godot/godot-4.0_alpha14.ebuild
@@ -244,3 +244,13 @@ src_install() {
        newins misc/dist/shell/_godot.zsh-completion _${s}
        dosym _${s} /usr/share/zsh/site-functions/_${s}-runner
 }
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; 
then
+               elog
+               elog "Remember to make backups before opening any Godot <=3.x 
projects in Godot 4."
+               elog "Automated migration is only partial, and it would be 
difficult to revert."
+       fi
+}

Reply via email to