aboutsummaryrefslogtreecommitdiffstats
path: root/security/p5-Digest-SV1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/p5-Digest-SV1/Makefile')
-rw-r--r--security/p5-Digest-SV1/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/security/p5-Digest-SV1/Makefile b/security/p5-Digest-SV1/Makefile
index a9c110df626e..92d0384c360b 100644
--- a/security/p5-Digest-SV1/Makefile
+++ b/security/p5-Digest-SV1/Makefile
@@ -18,13 +18,16 @@ BUILD_DEPENDS= ${SITE_PERL}/Digest.pm:${PORTSDIR}/security/p5-Digest \
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
${SITE_PERL}/${PERL_ARCH}/Digest/Haval256.pm:${PORTSDIR}/security/p5-Digest-Haval256
-PERL_CONFIGURE= yes
-PERL_MODBUILD= yes
+PERL_MODBUILD= yes
MAN3= Digest::SV1.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}/SV1.pm
+ ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/lib/Digest/SV1.pm
.endif
+
.include <bsd.port.post.mk>