summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2015-11-28 22:26:22 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2015-12-19 14:17:10 +0100
commit640c8f78470c0417b610773b4fd5cd239b125d24 (patch)
treef2e98eca8ed8d21e70ad587e17914ecfc3e83188 /eclass/perl-module.eclass
parentperl-module.eclass: Just go ahead when calling configure twice in EAPI=6 (diff)
downloadgentoo-640c8f78470c0417b610773b4fd5cd239b125d24.tar.gz
gentoo-640c8f78470c0417b610773b4fd5cd239b125d24.tar.bz2
gentoo-640c8f78470c0417b610773b4fd5cd239b125d24.zip
perl-module.eclass: Use default unpacking from EAPI=6 on
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass17
1 files changed, 14 insertions, 3 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index bc654a915abc..9b8e36a24da5 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)
@@ -109,7 +120,7 @@ pm_echovar=""
# This function is to be called during the ebuild src_unpack() phase.
perl-module_src_unpack() {
debug-print-function $FUNCNAME "$@"
-
+ [[ ${EAPI:-0} == 5 ]] || die "perl-module_src_unpack is banned in EAPI=6 or later"
unpacker_src_unpack
}