mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Don't use 'warnings' if perl < 5.6
This commit is contained in:
parent
3a544aeb4c
commit
9224ed555f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135969
@ -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 <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
${PERL} -pi -e '$$_="" if /warnings/' ${WRKSRC}/NamespaceSupport.pm
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user