commit:     5539a65bc1a8af2cbf3f5930c102cdbf9d0f6eec
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:04 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 07:19:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5539a65b

sys-auth/elogind: Port to ver_replacing

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

 sys-auth/elogind/elogind-255.5-r2.ebuild | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/sys-auth/elogind/elogind-255.5-r2.ebuild 
b/sys-auth/elogind/elogind-255.5-r2.ebuild
index 3b2e117604ce..5931ccdd58ae 100644
--- a/sys-auth/elogind/elogind-255.5-r2.ebuild
+++ b/sys-auth/elogind/elogind-255.5-r2.ebuild
@@ -14,7 +14,7 @@ else
        KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
 fi
 
-inherit linux-info meson pam python-any-r1 udev xdg-utils
+inherit eapi9-ver linux-info meson pam python-any-r1 udev xdg-utils
 
 DESCRIPTION="The systemd project's logind, extracted to a standalone package"
 HOMEPAGE="https://github.com/elogind/elogind";
@@ -172,13 +172,11 @@ pkg_postinst() {
                fi
        fi
 
-       for version in ${REPLACING_VERSIONS}; do
-               if ver_test "${version}" -lt 252.9; then
-                       elog "Starting with release 252.9 the sleep 
configuration is now done"
-                       elog "in the /etc/elogind/sleep.conf. Should you use 
non-default sleep"
-                       elog "configuration remember to migrate those to new 
configuration file."
-               fi
-       done
+       if ver_replacing -lt 252.9; then
+               elog "Starting with release 252.9 the sleep configuration is 
now done"
+               elog "in the /etc/elogind/sleep.conf. Should you use 
non-default sleep"
+               elog "configuration remember to migrate those to new 
configuration file."
+       fi
 
        local file files
        # find custom hooks excluding known (nvidia-drivers, sys-power/tlp)

Reply via email to