aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-12-30 09:13:54 +0800
committerleeym <leeym@FreeBSD.org>2005-12-30 09:13:54 +0800
commitcf446749591d233553bbdcb3cee16e824cd024d3 (patch)
tree08f9c3107431985aa7b7cd156758a5b5245c6ecb /www
parent9c7537a2d5ef50d5f9bbf353deddce3a85f0fd77 (diff)
downloadfreebsd-ports-gnome-cf446749591d233553bbdcb3cee16e824cd024d3.tar.gz
freebsd-ports-gnome-cf446749591d233553bbdcb3cee16e824cd024d3.tar.zst
freebsd-ports-gnome-cf446749591d233553bbdcb3cee16e824cd024d3.zip
- unbreak this port on old perl
PR: based on 90030 Submitted by: leeym
Diffstat (limited to 'www')
-rw-r--r--www/p5-HTML-Tree/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/www/p5-HTML-Tree/Makefile b/www/p5-HTML-Tree/Makefile
index 41db28ce1082..7ecbdd060547 100644
--- a/www/p5-HTML-Tree/Makefile
+++ b/www/p5-HTML-Tree/Makefile
@@ -28,9 +28,10 @@ MAN3= HTML::Parse.3 HTML::TreeBuilder.3 HTML::AsSubs.3 \
.include <bsd.port.pre.mk>
-# p5-HTML-Tree -> p5-HTML-Parser
.if ${PERL_LEVEL} < 500600
-IGNORE= requires perl 5.6 or above
+post-patch:
+ ${PERL} -pi -e 's/our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/t/*.t
+ ${PERL} -pi -e 's,-Tw,-,; s/(use|no) warnings;.*//' ${WRKSRC}/t/*.t
.endif
.include <bsd.port.post.mk>