summaryrefslogtreecommitdiffstats
path: root/security/p5-Digest-Elf
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-12-23 17:55:13 +0000
committerleeym <leeym@FreeBSD.org>2005-12-23 17:55:13 +0000
commitd38c38a9a3755ff4139dfd9ba84925bd4ec1bd8d (patch)
tree8e46bfe72174be425d0652a62819eda8ecb4417d /security/p5-Digest-Elf
parent1149a4274144645d4ba7632dc6fdf6135130277c (diff)
downloadFreeBSD-ports-d38c38a9a3755ff4139dfd9ba84925bd4ec1bd8d.zip
FreeBSD-ports-d38c38a9a3755ff4139dfd9ba84925bd4ec1bd8d.tar.gz
- unbreak on old perl
Submitted by: leeym Approved by: maintainer via email
Diffstat (limited to 'security/p5-Digest-Elf')
-rw-r--r--security/p5-Digest-Elf/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/security/p5-Digest-Elf/Makefile b/security/p5-Digest-Elf/Makefile
index fcfb2cc..0ee892b 100644
--- a/security/p5-Digest-Elf/Makefile
+++ b/security/p5-Digest-Elf/Makefile
@@ -18,7 +18,11 @@ PERL_CONFIGURE= yes
MAN3= Digest::Elf.3
.include <bsd.port.pre.mk>
-.if ${PERL_LEVEL} <= 500503
-IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/Elf.pm
+ ${PERL} -pi -e '$$_="" if m{5.006|warnings}' ${WRKSRC}/Elf.pm
.endif
+
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud