Skip to content

Commit

Permalink
perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eappl…
Browse files Browse the repository at this point in the history
…y, eapply_user)
  • Loading branch information
akhuettel committed Dec 19, 2015
1 parent 640c8f7 commit c4739c2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions eclass/perl-module.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"
Expand Down

0 comments on commit c4739c2

Please sign in to comment.