Dnia 11 grudnia 2015 22:03:01 CET, [email protected] napisał(a):
>From: "Andreas K. Huettel (dilfridge)" <[email protected]>
>
>---
> eclass/perl-module.eclass | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)
>
>diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
>index 8caa981..9d87b17 100644
>--- a/eclass/perl-module.eclass
>+++ b/eclass/perl-module.eclass
>@@ -138,9 +138,17 @@ 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
>+              [[ ${PATCHES[@]} ]] && eapply "${PATCHES[@]}"
>+              debug-print "$FUNCNAME: applying user patches"
>+              eapply_user

Why not just 'default'?

>+      fi
>+
>       if [[ ${PERL_RM_FILES[@]} ]]; then
>               debug-print "$FUNCNAME: stripping unneeded files"
>               perl_rm_files "${PERL_RM_FILES[@]}"

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to