# New ports collection makefile for: p5-HTML-TreeBuilder-XPath # Date created: 2006-07-11 # Whom: Gea-Suan Lin # # $FreeBSD$ # PORTNAME= HTML-TreeBuilder-XPath PORTVERSION= 0.08 CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= HTML PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Add XPath support to HTML::TreeBuilder RUN_DEPENDS= ${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \ ${SITE_PERL}/XML/XPathEngine.pm:${PORTSDIR}/textproc/p5-XML-XPathEngine PERL_CONFIGURE= yes MAN3= HTML::TreeBuilder::XPath.3 .include .if ${PERL_LEVEL} < 500600 post-patch: ${PERL} -pi -e '$$_ = "" if /^use (5\.006|vars|warnings)/' \ ${WRKSRC}/Makefile.PL ${WRKSRC}/lib/HTML/TreeBuilder/XPath.pm .endif .if ${PERL_LEVEL} < 500703 RUN_DEPENDS+= ${SITE_PERL}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils .endif .include