aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-12-24 02:12:05 +0800
committerleeym <leeym@FreeBSD.org>2005-12-24 02:12:05 +0800
commit920053491c7924417c6b56937ddad3e8630db0b0 (patch)
treeeff90321d2966cbeb56a86dc412610feccf61c10
parente2e38c3b392b85407761beb298bbb7ed4edf5d09 (diff)
downloadfreebsd-ports-gnome-920053491c7924417c6b56937ddad3e8630db0b0.tar.gz
freebsd-ports-gnome-920053491c7924417c6b56937ddad3e8630db0b0.tar.zst
freebsd-ports-gnome-920053491c7924417c6b56937ddad3e8630db0b0.zip
- unbreak on old perl
Submitted by: leeym Approved by: maintainer via email
-rw-r--r--security/p5-Digest-JHash/Makefile9
-rw-r--r--security/p5-Digest-Pearson/Makefile10
2 files changed, 13 insertions, 6 deletions
diff --git a/security/p5-Digest-JHash/Makefile b/security/p5-Digest-JHash/Makefile
index a69c99c1c22d..8dbca0091d4b 100644
--- a/security/p5-Digest-JHash/Makefile
+++ b/security/p5-Digest-JHash/Makefile
@@ -13,12 +13,15 @@ PKGNAMEPREFIX= p5-
MAINTAINER= gkovesdan@t-hosting.hu
COMMENT= Perl extension for JHash hash algorithm
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= yes
MAN3= Digest::JHash.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}/JHash.pm
.endif
+
.include <bsd.port.post.mk>
diff --git a/security/p5-Digest-Pearson/Makefile b/security/p5-Digest-Pearson/Makefile
index 5b06fcb5656f..b54ddeeb7fe5 100644
--- a/security/p5-Digest-Pearson/Makefile
+++ b/security/p5-Digest-Pearson/Makefile
@@ -13,12 +13,16 @@ PKGNAMEPREFIX= p5-
MAINTAINER= gkovesdan@t-hosting.hu
COMMENT= Perl extension for Peter K. Pearson's hash algorithm
-PERL_CONFIGURE= yes
+PERL_CONFIGURE= yes
MAN3= Digest::Pearson.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}/Pearson.pm
+ ${PERL} -pi -e '$$_="" if m{5.006|warnings}' ${WRKSRC}/Pearson.pm
.endif
+
.include <bsd.port.post.mk>