commit:     b506206233f5b425a21c739379386483ce0c4d88
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:03 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:30 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5062062

app-text/xiphos: Port to ver_replacing

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

 app-text/xiphos/xiphos-4.2.1-r2.ebuild | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/app-text/xiphos/xiphos-4.2.1-r2.ebuild 
b/app-text/xiphos/xiphos-4.2.1-r2.ebuild
index b7ac40476986..0acd0cdd4a59 100644
--- a/app-text/xiphos/xiphos-4.2.1-r2.ebuild
+++ b/app-text/xiphos/xiphos-4.2.1-r2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake xdg-utils
+inherit cmake eapi9-ver xdg-utils
 
 DESCRIPTION="A Gtk+-based Bible-study frontend for SWORD"
 HOMEPAGE="https://xiphos.org/";
@@ -56,15 +56,9 @@ src_configure() {
 pkg_postinst() {
        xdg_icon_cache_update
 
-       if [[ -n "${REPLACING_VERSIONS}" ]]; then
-               local rver
-               for rver in ${REPLACING_VERSIONS}; do
-                       if ver_test "${rver}" -le "4.2.1"; then
-                               ewarn "Please note that ${PN} no longer 
provides an editor due to its dependency on outdated libraries."
-                               ewarn "Studypad and the personal commentary 
will no longer work."
-                               break
-                       fi
-               done
+       if ver_replacing -le "4.2.1"; then
+               ewarn "Please note that ${PN} no longer provides an editor due 
to its dependency on outdated libraries."
+               ewarn "Studypad and the personal commentary will no longer 
work."
        fi
 }
 

Reply via email to