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

net-proxy/lyrebird: Port to ver_replacing

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

 net-proxy/lyrebird/lyrebird-0.5.0.ebuild | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/net-proxy/lyrebird/lyrebird-0.5.0.ebuild 
b/net-proxy/lyrebird/lyrebird-0.5.0.ebuild
index 0313b779ac34..a85b87945ef9 100644
--- a/net-proxy/lyrebird/lyrebird-0.5.0.ebuild
+++ b/net-proxy/lyrebird/lyrebird-0.5.0.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 go-module
+inherit eapi9-ver go-module
 
 DESCRIPTION="An obfuscating proxy supporting Tor's pluggable transport 
protocol obfs4"
 
HOMEPAGE="https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird";
@@ -31,15 +31,9 @@ src_install() {
 }
 
 pkg_postinst() {
-       if [[ ! -z "${REPLACING_VERSIONS}" ]]; then
-               local oldver
-               for oldver in ${REPLACING_VERSIONS}; do
-                       if ver_test "${oldver}" -lt 0.1.0; then
-                               ewarn "Since version 0.1.0 the proxy executable 
is called '${PN}' rather than 'obfs4proxy'."
-                               ewarn "Please update your Tor configuration 
accordingly."
-                               ewarn
-                               break
-                       fi
-               done
+       if ver_replacing -lt 0.1.0; then
+               ewarn "Since version 0.1.0 the proxy executable is called 
'${PN}' rather than 'obfs4proxy'."
+               ewarn "Please update your Tor configuration accordingly."
+               ewarn
        fi
 }

Reply via email to