1 |
commit: 6af24133782dc5b5455cc0a419002d85c0cdb22b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 19:32:44 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 21:48:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6af24133 |
7 |
|
8 |
dev-games/godot: give postinst elog about migration to 4 |
9 |
|
10 |
Not super important given imagine devs would know this well, and need |
11 |
to launch as "godot4" so won't be a surprise. But still won't hurt for |
12 |
when this gets keyworded. |
13 |
|
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
dev-games/godot/godot-4.0_alpha14.ebuild | 10 ++++++++++ |
17 |
1 file changed, 10 insertions(+) |
18 |
|
19 |
diff --git a/dev-games/godot/godot-4.0_alpha14.ebuild b/dev-games/godot/godot-4.0_alpha14.ebuild |
20 |
index 9844ed38787e..2e22a6f9fe5a 100644 |
21 |
--- a/dev-games/godot/godot-4.0_alpha14.ebuild |
22 |
+++ b/dev-games/godot/godot-4.0_alpha14.ebuild |
23 |
@@ -244,3 +244,13 @@ src_install() { |
24 |
newins misc/dist/shell/_godot.zsh-completion _${s} |
25 |
dosym _${s} /usr/share/zsh/site-functions/_${s}-runner |
26 |
} |
27 |
+ |
28 |
+pkg_postinst() { |
29 |
+ xdg_pkg_postinst |
30 |
+ |
31 |
+ if [[ ! ${REPLACING_VERSIONS} ]] && has_version ${CATEGORY}/${PN}:3; then |
32 |
+ elog |
33 |
+ elog "Remember to make backups before opening any Godot <=3.x projects in Godot 4." |
34 |
+ elog "Automated migration is only partial, and it would be difficult to revert." |
35 |
+ fi |
36 |
+} |