From c4739c29f633ca5c8900a51d8ceb3afc69561d32 Mon Sep 17 00:00:00 2001 From: "Andreas K. Huettel (dilfridge)" Date: Sat, 28 Nov 2015 22:35:00 +0100 Subject: [PATCH] perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eapply, eapply_user) --- eclass/perl-module.eclass | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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[@]}" -- 2.26.2