commit:     cc3eecad3027770d0f8e80c53360f3267c804cc2
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 05:55:05 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 06:51:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc3eecad

app-eselect/eselect-wine: use eapi9-ver.eclass

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

 app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild 
b/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild
index 3c19a046d3b2..275da8e22183 100644
--- a/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild
+++ b/app-eselect/eselect-wine/eselect-wine-2.0.2-r2.ebuild
@@ -1,8 +1,10 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit eapi9-ver
+
 DESCRIPTION="Manage active Wine slots and variants"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Wine";
 SRC_URI="https://gitweb.gentoo.org/proj/eselect-wine.git/snapshot/${P}.tar.bz2";
@@ -66,8 +68,7 @@ pkg_postinst() {
 
        rm -f "${EROOT}"/etc/eselect/wine/eselect-wine-migration || die # see 
preinst
 
-       if [[ ! ${REPLACING_VERSIONS##* } ]] ||
-               ver_test ${REPLACING_VERSIONS##* } -lt 2; then
+       if ver_replacing -lt 2; then
                elog
                elog "Warning:"
                elog
@@ -83,8 +84,7 @@ pkg_postinst() {
                # using that path or source profile outside the ROOT
        fi
 
-       if [[ ${REPLACING_VERSIONS##* } ]] &&
-               ver_test ${REPLACING_VERSIONS##* } -lt 2.0.2-r1; then
+       if ver_replacing -lt 2.0.2-r1; then
                elog "Note that >=${PN}-2.0.2-r1 no longer installs the"
                elog "'${EPREFIX}/usr/bin/wine' symbolic link. 'wine' can still 
be found"
                elog "in PATH but, if using the direct location for scripts 
and/or binfmt,"

Reply via email to