diff options
author | 2016-04-11 17:47:35 +1200 | |
---|---|---|
committer | 2017-09-17 12:07:32 +1200 | |
commit | afb03689efd0c191928ecf021b0f70fca1dce9d4 (patch) | |
tree | 4c0dedc8a4ccb456d451ae434f870fd44a5ff14c /eclass | |
parent | perl-module.eclass: sync documentation (diff) | |
download | perl-overlay-afb03689efd0c191928ecf021b0f70fca1dce9d4.tar.gz perl-overlay-afb03689efd0c191928ecf021b0f70fca1dce9d4.tar.bz2 perl-overlay-afb03689efd0c191928ecf021b0f70fca1dce9d4.zip |
perl-module.eclass: sync EAPI-support and inherit logic
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/perl-module.eclass | 20 |
1 files 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 |