summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-07-02 20:13:45 +0200
committerDavid Seifert <soap@gentoo.org>2022-07-02 20:13:45 +0200
commit911ff1acf31e688665b7f69bfc49cc682eb6fb3b (patch)
tree177930cf6832bd5f8af98a64480fe0c4c9b1de4e /eclass/perl-functions.eclass
parentperl-module.eclass: remove EAPI 5 (diff)
downloadgentoo-911ff1acf31e688665b7f69bfc49cc682eb6fb3b.tar.gz
gentoo-911ff1acf31e688665b7f69bfc49cc682eb6fb3b.tar.bz2
gentoo-911ff1acf31e688665b7f69bfc49cc682eb6fb3b.zip
perl-functions.eclass: remove EAPI 5
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/perl-functions.eclass')
-rw-r--r--eclass/perl-functions.eclass18
1 files changed, 8 insertions, 10 deletions
diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
index 4adba921485e..c1b67f54fa75 100644
--- a/eclass/perl-functions.eclass
+++ b/eclass/perl-functions.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: perl-functions.eclass
@@ -8,7 +8,7 @@
# Seemant Kulleen <seemant@gentoo.org>
# Andreas K. Huettel <dilfridge@gentoo.org>
# Kent Fredric <kentnl@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7 8
+# @SUPPORTED_EAPIS: 6 7 8
# @BLURB: helper functions eclass for perl modules
# @DESCRIPTION:
# The perl-functions eclass is designed to allow easier installation of perl
@@ -16,16 +16,16 @@
# It provides helper functions, no phases or variable manipulation in
# global scope.
-[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
-
-case "${EAPI:-0}" in
- 5|6|7|8)
+case ${EAPI} in
+ 6|7|8)
;;
*)
- die "EAPI=${EAPI} is not supported by perl-functions.eclass"
+ die "${ECLASS}: EAPI ${EAPI:-0} not supported"
;;
esac
+[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
+
perlinfo_done=false
# @FUNCTION: perl_set_version
@@ -237,9 +237,7 @@ perl_rm_files() {
# only sense for perl-core packages.
perl_link_duallife_scripts() {
debug-print-function $FUNCNAME "$@"
- if [[ ${CATEGORY} != perl-core ]] || ! has_version ">=dev-lang/perl-5.8.8-r8" ; then
- return 0
- fi
+ [[ ${CATEGORY} != perl-core ]] && return 0
local i ff
if has "${EBUILD_PHASE:-none}" "postinst" "postrm" ; then