commit:     f473f7cbd4bb64ceb543e464565d2b536a3ecc0c
Author:     Kent Fredric <kentfredric <AT> gmail <DOT> com>
AuthorDate: Mon Apr 11 06:40:10 2016 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Sun Sep 17 00:07:33 2017 +0000
URL:        https://gitweb.gentoo.org/proj/perl-overlay.git/commit/?id=f473f7cb

perl-module.eclass: src_prepare: use epatch_user in EAPI5, else, call default

 eclass/perl-module.eclass | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 0804c044e..21762adfc 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -189,10 +189,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 "$@"
-       has src_prepare ${PERL_EXPF} && \
-       [[ ${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[@]}"

Reply via email to