aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2005-12-19 13:39:16 +0800
committerclsung <clsung@FreeBSD.org>2005-12-19 13:39:16 +0800
commit7bc45f5b4834e62a06768782aa3f8782cf161a65 (patch)
tree78c45ed01a2ee3314c36ed214fa4fbad4d2a08ec /devel
parentf2a91204a0732521c13d10c2b258caf83f0bb4db (diff)
downloadfreebsd-ports-gnome-7bc45f5b4834e62a06768782aa3f8782cf161a65.tar.gz
freebsd-ports-gnome-7bc45f5b4834e62a06768782aa3f8782cf161a65.tar.zst
freebsd-ports-gnome-7bc45f5b4834e62a06768782aa3f8782cf161a65.zip
- build on old perl
PR: 90572 Submitted by: leeym
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-File-Copy-Recursive/Makefile7
1 files changed, 5 insertions, 2 deletions
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 <bsd.port.pre.mk>
-.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 <bsd.port.post.mk>