From: Andreas K. Huettel (dilfridge) Date: Sat, 28 Nov 2015 21:35:00 +0000 (+0100) Subject: perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eapply, eapply_user) X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c4739c29f633ca5c8900a51d8ceb3afc69561d32;p=gentoo.git perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eapply, eapply_user) --- diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 9b8e36a24da5..8916ad07af8b 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -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[@]}"