freebsd-ports/www/p5-HTML-TreeBuilder-XPath/Makefile
Cheng-Lung Sung d31e23eb5c - Update to 0.06
PR:		ports/101661
Submitted by:	maintainer (Gea-Suan Lin)
2006-08-09 03:01:40 +00:00

37 lines
935 B
Makefile

# New ports collection makefile for: p5-HTML-TreeBuilder-XPath
# Date created: 2006-07-11
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= HTML-TreeBuilder-XPath
PORTVERSION= 0.06
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>