commit:     15486922489d9535484a60a948ec1f3b58893b01
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:07 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15486922

sys-auth/solo1: Port to ver_replacing

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

 sys-auth/solo1/solo1-0.1.1-r1.ebuild | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/sys-auth/solo1/solo1-0.1.1-r1.ebuild 
b/sys-auth/solo1/solo1-0.1.1-r1.ebuild
index 0e8e190536f4..f8d159eece00 100644
--- a/sys-auth/solo1/solo1-0.1.1-r1.ebuild
+++ b/sys-auth/solo1/solo1-0.1.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_USE_PEP517=flit
 
-inherit distutils-r1 pypi
+inherit distutils-r1 eapi9-ver pypi
 
 DESCRIPTION="CLI and Python library for SoloKeys Solo 1"
 HOMEPAGE="https://github.com/solokeys/solo1-cli";
@@ -25,14 +25,8 @@ RDEPEND=">=dev-python/click-7.1.0[${PYTHON_USEDEP}]
        dev-python/requests[${PYTHON_USEDEP}]"
 
 pkg_postinst() {
-       if [[ -n ${REPLACING_VERSIONS} ]]; then
-               local ver
-               for ver in ${REPLACING_VERSIONS}; do
-                       if ver_test ${ver} -lt 0.1.1; then
-                               ewarn "Note that since version 0.1.1 the CLI 
executable is called '${PN}' rather than 'solo'"
-                               ewarn "The old name can still be used for now 
but is deprecated"
-                               break
-                       fi
-               done
+       if ver_replacing -lt 0.1.1; then
+               ewarn "Note that since version 0.1.1 the CLI executable is 
called '${PN}' rather than 'solo'"
+               ewarn "The old name can still be used for now but is deprecated"
        fi
 }

Reply via email to