commit:     9774a49a69ca829384640606d859045843dadd6a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:42 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 15:51:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9774a49a

net-im/spectrum2: Port to ver_replacing

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

 net-im/spectrum2/spectrum2-2.2.1.ebuild | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/net-im/spectrum2/spectrum2-2.2.1.ebuild 
b/net-im/spectrum2/spectrum2-2.2.1.ebuild
index bfeccf1de360..1f90c0890c70 100644
--- a/net-im/spectrum2/spectrum2-2.2.1.ebuild
+++ b/net-im/spectrum2/spectrum2-2.2.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake systemd tmpfiles
+inherit cmake eapi9-ver systemd tmpfiles
 
 DESCRIPTION="An open source instant messaging transport"
 HOMEPAGE="https://www.spectrum.im";
@@ -113,14 +113,9 @@ src_install() {
 pkg_postinst() {
        tmpfiles_process spectrum2.conf
 
-       if [[ ${REPLACING_VERSIONS} ]]; then
-               for v in ${REPLACING_VERSIONS}; do
-                       if ver_test "${v}" -lt 2.2.0; then
-                               ewarn "Starting with Release 2.2.0, the path 
for spectrum2"
-                               ewarn "executable helper files has been changed 
from '/usr/bin'"
-                               ewarn "to '/usr/libexec'. Please update your 
config files!"
-                               break
-                       fi
-               done
+       if ver_replacing -lt 2.2.0; then
+               ewarn "Starting with Release 2.2.0, the path for spectrum2"
+               ewarn "executable helper files has been changed from '/usr/bin'"
+               ewarn "to '/usr/libexec'. Please update your config files!"
        fi
 }

Reply via email to