summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorErwin Lansing <erwin@FreeBSD.org>2006-01-07 11:28:09 +0000
committerErwin Lansing <erwin@FreeBSD.org>2006-01-07 11:28:09 +0000
commit66025e25963e8a20f36a654c73522e9887cb8717 (patch)
treea6640570cdaa9780c2e957273508033168776b94 /www
parentFIx build without xft support. (diff)
Unbreak for old perl
PR: 91440 Submitted by: leeym
Notes
Notes: svn path=/head/; revision=152992
Diffstat (limited to 'www')
-rw-r--r--www/p5-HTML-TableExtract/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/www/p5-HTML-TableExtract/Makefile b/www/p5-HTML-TableExtract/Makefile
index 4138374340c4..0f79d2c9ae4f 100644
--- a/www/p5-HTML-TableExtract/Makefile
+++ b/www/p5-HTML-TableExtract/Makefile
@@ -15,8 +15,9 @@ PKGNAMEPREFIX= p5-
MAINTAINER= erwin@FreeBSD.org
COMMENT= Extract text contained in tables within an HTML document
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser
-RUN_DEPENDS= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser
+BUILD_DEPENDS= ${RUN_DEPENDS}
+BUILD_DEPENDS+= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
PERL_CONFIGURE= yes
@@ -25,7 +26,11 @@ MAN3= HTML::TableExtract.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
+post-configure:
+ ${PERL} -pi -e '$$_="" if m{warnings}' ${WRKSRC}/lib/HTML/TableExtract.pm
+ ${PERL} -pi -e 's/exists/defined/ if m{return 1}' ${WRKSRC}/lib/HTML/TableExtract.pm
+ ${PERL} -pi -e "s/'<',/'<'./" ${WRKSRC}/t/30_tree.t
+ ${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/${MAKEFILE}
.endif
.include <bsd.port.post.mk>