Date: Sat, 7 Jan 2006 12:12:51 +0800 (CST) From: Yen-Ming Lee <leeym@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: erwin@FreeBSD.org Subject: ports/91440: [PATCH] www/p5-HTML-TableExtract: unbreak on old perl Message-ID: <20060107041251.56FB8B29C6D@utopia.leeym.com> Resent-Message-ID: <200601070420.k074K47L052494@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 91440 >Category: ports >Synopsis: [PATCH] www/p5-HTML-TableExtract: unbreak on old perl >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 07 04:20:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 6.0-STABLE i386 >Organization: FreeBSD Taiwan >Environment: System: FreeBSD utopia.leeym.com 6.0-STABLE FreeBSD 6.0-STABLE #0: Thu Nov 17 09:15:19 CST 2005 >Description: - unbreak this port on old perl Port maintainer (erwin@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- p5-HTML-TableExtract-2.06.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/p5-HTML-TableExtract/Makefile,v retrieving revision 1.20 diff -u -u -r1.20 Makefile --- Makefile 26 Oct 2005 17:05:02 -0000 1.20 +++ Makefile 7 Jan 2006 04:12:28 -0000 @@ -15,8 +15,9 @@ 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 @@ .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> --- p5-HTML-TableExtract-2.06.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060107041251.56FB8B29C6D>