# New ports collection makefile for: p5-HTML-Tree
# Date created: 3 January 2000
# Whom: Dmitry Sivachenko
#
# $FreeBSD$
#
PORTNAME= HTML-Tree
PORTVERSION= 3.19.01
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
PKGNAMEPREFIX= p5-
DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(..)$/\1/}
MAINTAINER= ports@FreeBSD.org
COMMENT= A collection of modules to manupulate HTML syntax trees
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= HTML::Parse.3 HTML::TreeBuilder.3 HTML::AsSubs.3 \
HTML::Element.3 HTML::Element::traverse.3 HTML::Tree.3 \
HTML::Tree::Scanning.3 HTML::Tree::AboutObjects.3 \
HTML::Tree::AboutTrees.3
.include
.if ${PERL_LEVEL} < 500600
post-patch:
${PERL} -pi -e 's/our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' ${WRKSRC}/t/*.t
${PERL} -pi -e 's,-Tw,-,; s/(use|no) warnings;.*//' ${WRKSRC}/t/*.t
.endif
.include