From ab546a77b464ada12ee5b12f23896b2a030542e0 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Mon, 19 Dec 2005 05:39:16 +0000 Subject: - build on old perl PR: 90572 Submitted by: leeym --- devel/p5-File-Copy-Recursive/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'devel/p5-File-Copy-Recursive') diff --git a/devel/p5-File-Copy-Recursive/Makefile b/devel/p5-File-Copy-Recursive/Makefile index c2fe3c746ba2..4b693664840e 100644 --- a/devel/p5-File-Copy-Recursive/Makefile +++ b/devel/p5-File-Copy-Recursive/Makefile @@ -22,8 +22,11 @@ MAN3= File::Copy::Recursive.3 .include -.if ${PERL_LEVEL} < 500601 -IGNORE= requires perl 5.6.x or later. Install lang/perl5 then try again +.if ${PERL_LEVEL} < 500600 +post-patch: + ${PERL} -pi -e 's/(mkdir \S+)/$$1, 0755/g' ${WRKSRC}/Recursive.pm + ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Recursive.pm + ${REINPLACE_CMD} -e '/warnings/d' ${WRKSRC}/Recursive.pm .endif .include -- cgit v1.2.3