diff options
author | Kent Fredric <kentfredric@gmail.com> | 2016-04-11 18:40:10 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2017-09-17 12:07:33 +1200 |
commit | f473f7cbd4bb64ceb543e464565d2b536a3ecc0c (patch) | |
tree | 7d324e35ea259f2c870d5353c725be9f020f0c4b | |
parent | perl-module.eclass: stop calling src_prepare in src_unpack (diff) | |
download | perl-overlay-f473f7cbd4bb64ceb543e464565d2b536a3ecc0c.tar.gz perl-overlay-f473f7cbd4bb64ceb543e464565d2b536a3ecc0c.tar.bz2 perl-overlay-f473f7cbd4bb64ceb543e464565d2b536a3ecc0c.zip |
perl-module.eclass: src_prepare: use epatch_user in EAPI5, else, call default
-rw-r--r-- | eclass/perl-module.eclass | 13 |
1 files 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[@]}" |