perl-module.eclass: Use default unpacking from EAPI=6 on
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>
Sat, 28 Nov 2015 21:26:22 +0000 (22:26 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 19 Dec 2015 13:17:10 +0000 (14:17 +0100)
eclass/perl-module.eclass

index bc654a915abca599c350d0d83a51f333cac6890b..9b8e36a24da5802f0896d9e73c3b373a0124e78e 100644 (file)
 # 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
 }