summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-text/wgetpaste/wgetpaste-2.34.ebuild23
1 files changed, 8 insertions, 15 deletions
diff --git a/app-text/wgetpaste/wgetpaste-2.34.ebuild b/app-text/wgetpaste/wgetpaste-2.34.ebuild
index 9f46e18a3e48..79385a2d7171 100644
--- a/app-text/wgetpaste/wgetpaste-2.34.ebuild
+++ b/app-text/wgetpaste/wgetpaste-2.34.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 optfeature
+inherit eapi9-ver optfeature
DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="https://github.com/zlin/wgetpaste"
@@ -39,18 +39,11 @@ pkg_postinst() {
optfeature "ANSI (color code) stripping support" app-text/ansifilter
optfeature "xclip support" x11-misc/xclip
- if [[ -n ${REPLACING_VERSIONS} ]]; then
- local old
-
- for old in ${REPLACING_VERSIONS}; do
- if ver_test ${old} -lt '2.33-r2'; then
- ewarn
- ewarn "Sprunge is dead and the service has been dropped from the code. Remove or"
- ewarn "replace sprunge as the default service in the system or user wgetpaste"
- ewarn "config if applicable."
- ewarn
- break
- fi
- done
+ if ver_replacing -lt '2.33-r2'; then
+ ewarn
+ ewarn "Sprunge is dead and the service has been dropped from the code. Remove or"
+ ewarn "replace sprunge as the default service in the system or user wgetpaste"
+ ewarn "config if applicable."
+ ewarn
fi
}