aboutsummaryrefslogtreecommitdiff
path: root/www/p5-HTML-TableExtract
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/p5-HTML-TableExtract
parent3c22083c7c0123e4611543fdc641129e8d837608 (diff)
downloadports-66025e25963e8a20f36a654c73522e9887cb8717.tar.gz
ports-66025e25963e8a20f36a654c73522e9887cb8717.zip
Notes
Diffstat (limited to 'www/p5-HTML-TableExtract')
-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>