commit:     d916fe58f7036426e519d2ea7ff139600447a602
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:23 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 16 07:22:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d916fe58

x11-apps/xinit: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 x11-apps/xinit/xinit-1.4.3.ebuild | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/x11-apps/xinit/xinit-1.4.3.ebuild 
b/x11-apps/xinit/xinit-1.4.3.ebuild
index b42687793859..62822d1d415c 100644
--- a/x11-apps/xinit/xinit-1.4.3.ebuild
+++ b/x11-apps/xinit/xinit-1.4.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit xorg-3
+inherit eapi9-ver xorg-3
 
 DESCRIPTION="X Window System initializer"
 
@@ -61,15 +61,11 @@ pkg_postinst() {
                ewarn "Here's an example of setting it for the whole system:"
                ewarn "    echo XSESSION=\"Gnome\" > /etc/env.d/90xsession"
                ewarn "    env-update && source /etc/profile"
+       elif ver_replacing "-lt" "1.4.1"; then
+               ewarn "Starting with ${CATEGORY}/${PN}-1.4.1 serverauth files 
are no longer kept in the"
+               ewarn "home directory but rather are created in \$TMPDIR 
(typically /tmp).  The change"
+               ewarn "is transparent for most of users, however those that use 
runtime temporary"
+               ewarn "directories cleaning tools, like app-admin/tmpreaper, 
may need to adjust them"
+               ewarn "not to remove the 'serverauth.*' files."
        fi
-
-       for v in ${REPLACING_VERSIONS}; do
-               if ver_test "$v" "-lt" "1.4.1"; then
-                       ewarn "Starting with ${CATEGORY}/${PN}-1.4.1 serverauth 
files are no longer kept in the"
-                       ewarn "home directory but rather are created in 
\$TMPDIR (typically /tmp).  The change"
-                       ewarn "is transparent for most of users, however those 
that use runtime temporary"
-                       ewarn "directories cleaning tools, like 
app-admin/tmpreaper, may need to adjust them"
-                       ewarn "not to remove the 'serverauth.*' files."
-               fi
-       done
 }

Reply via email to