commit: afb03689efd0c191928ecf021b0f70fca1dce9d4
Author: Kent Fredric <kentfredric <AT> gmail <DOT> com>
AuthorDate: Mon Apr 11 05:47:35 2016 +0000
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sun Sep 17 00:07:32 2017 +0000
URL: https://gitweb.gentoo.org/proj/perl-overlay.git/commit/?id=afb03689
perl-module.eclass: sync EAPI-support and inherit logic
eclass/perl-module.eclass | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 96d4c587c..9f3f7a28a 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -17,15 +17,17 @@
# ExtUtils::MakeMaker or Module::Build), we recommend to use
perl-functions.eclass
# instead.
-inherit eutils multiprocessing unpacker perl-functions
-[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
-
-PERL_EXPF="src_unpack src_compile src_test src_install src_prepare
src_configure"
-[[ ${CATEGORY} == "perl-core" ]] && PERL_EXPF+=" pkg_postinst pkg_postrm"
-
-case "${EAPI:-0}" in
- 5) ;;
- *) die "EAPI=${EAPI} is not supported by perl-module.eclass"
+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 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