perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eapply, eapply_user)
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>
Sat, 28 Nov 2015 21:35:00 +0000 (22:35 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 19 Dec 2015 13:17:11 +0000 (14:17 +0100)
eclass/perl-module.eclass

index 9b8e36a24da5802f0896d9e73c3b373a0124e78e..8916ad07af8bc39b8257e0f9bd057c6e648e8012 100644 (file)
@@ -131,9 +131,15 @@ perl-module_src_unpack() {
 # This function is to be called during the ebuild src_prepare() phase.
 perl-module_src_prepare() {
        debug-print-function $FUNCNAME "$@"
-       [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
-       debug-print "$FUNCNAME: applying user patches"
-       epatch_user
+
+       if [[ ${EAPI:-0} == 5 ]] ; then
+               [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
+               debug-print "$FUNCNAME: applying user patches"
+               epatch_user
+       else
+               default
+       fi
+
        if [[ ${PERL_RM_FILES[@]} ]]; then
                debug-print "$FUNCNAME: stripping unneeded files"
                perl_rm_files "${PERL_RM_FILES[@]}"