From 3a52a62a98f8f0101d7b33fc615790fb0368d29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= Date: Fri, 14 Feb 2025 15:10:46 +0100 Subject: [PATCH] app-arch/gzip: Port to ver_replacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ulrich Müller --- app-arch/gzip/gzip-1.13-r1.ebuild | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/app-arch/gzip/gzip-1.13-r1.ebuild b/app-arch/gzip/gzip-1.13-r1.ebuild index 376a342bae0c6..6a5ffb05ff360 100644 --- a/app-arch/gzip/gzip-1.13-r1.ebuild +++ b/app-arch/gzip/gzip-1.13-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gzip.asc -inherit flag-o-matic verify-sig +inherit eapi9-ver flag-o-matic verify-sig DESCRIPTION="Standard GNU compressor" HOMEPAGE="https://www.gnu.org/software/gzip/" @@ -80,14 +80,9 @@ src_install() { } pkg_postinst() { - if [[ -n ${REPLACING_VERSIONS} ]]; then - local ver - for ver in ${REPLACING_VERSIONS}; do - if ver_test "${ver}" -lt "1.12-r2"; then - ewarn "This package no longer installs 'uncompress'." - ewarn "Please use 'gzip -d' to decompress .Z files." - fi - done + if ver_replacing -lt "1.12-r2"; then + ewarn "This package no longer installs 'uncompress'." + ewarn "Please use 'gzip -d' to decompress .Z files." fi # ensure to preserve the symlinks before app-alternatives/gzip