From: "Andreas K. Huettel (dilfridge)" <[email protected]>
---
eclass/perl-module.eclass | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 734de11..8caa981 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -15,9 +15,20 @@
# All exported functions from perl-functions.eclass (inherited here)
# explicitly also belong to the interface of perl-module.eclass.
-inherit eutils multiprocessing unpacker perl-functions
+case "${EAPI:-0}" in
+ 5)
+ inherit eutils multiprocessing unpacker perl-functions
+ PERL_EXPF="src_unpack src_prepare src_configure src_compile
src_test src_install"
+ ;;
+ 6)
+ inherit eutils multiprocessing perl-functions
+ PERL_EXPF="src_prepare src_configure src_compile src_test
src_install"
+ ;;
+ *)
+ die "EAPI=${EAPI} is not supported by perl-module.eclass"
+ ;;
+esac
-PERL_EXPF="src_unpack src_prepare src_configure src_compile src_test
src_install"
case "${EAPI:-0}" in
5)
@@ -116,7 +127,7 @@ pm_echovar=""
# This function is to be called during the ebuild src_unpack() phase.
perl-module_src_unpack() {
debug-print-function $FUNCNAME "$@"
-
+ [[ ${EAPI}==5 ]] || die "perl-module_src_unpack is banned in EAPI=6 or
later"
unpacker_src_unpack
}
--
2.6.3