From 9224ed555f6b789e3cd1896a7a34bd55df01187c Mon Sep 17 00:00:00 2001 From: Sergey Skvortsov Date: Mon, 23 May 2005 15:43:24 +0000 Subject: Don't use 'warnings' if perl < 5.6 --- textproc/p5-XML-NamespaceSupport/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'textproc/p5-XML-NamespaceSupport') diff --git a/textproc/p5-XML-NamespaceSupport/Makefile b/textproc/p5-XML-NamespaceSupport/Makefile index 95719e1dc85b..21d9acd2b770 100644 --- a/textproc/p5-XML-NamespaceSupport/Makefile +++ b/textproc/p5-XML-NamespaceSupport/Makefile @@ -7,6 +7,7 @@ PORTNAME= XML-NamespaceSupport PORTVERSION= 1.09 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= XML @@ -19,4 +20,11 @@ PERL_CONFIGURE= yes MAN3= XML::NamespaceSupport.3 -.include +.include + +post-patch: +.if ${PERL_LEVEL} < 500600 + ${PERL} -pi -e '$$_="" if /warnings/' ${WRKSRC}/NamespaceSupport.pm +.endif + +.include -- cgit v1.2.3