summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2015-11-28 22:35:00 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2015-12-19 14:17:11 +0100
commitc4739c29f633ca5c8900a51d8ceb3afc69561d32 (patch)
treed0d4d5b4216d84bf67d243e9bffb9e915ec1f1c7 /eclass/perl-module.eclass
parentperl-module.eclass: Use default unpacking from EAPI=6 on (diff)
downloadgentoo-c4739c29f633ca5c8900a51d8ceb3afc69561d32.tar.gz
gentoo-c4739c29f633ca5c8900a51d8ceb3afc69561d32.tar.bz2
gentoo-c4739c29f633ca5c8900a51d8ceb3afc69561d32.zip
perl-module.eclass: Inherit default src_prepare from EAPI=6 on (eapply, eapply_user)
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass12
1 files 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[@]}"