HTML::TreeBuilder::LibXML is drop-in-replacement

for HTML::TreeBuilder::XPath.

Currently, this module implements good enough methods
for work with Web::Scraper.

PR:		ports/133780
Submitted by:	TERAMOTO Masahiro <markun@onohara.to>
This commit is contained in:
Wesley Shields 2009-05-06 14:40:32 +00:00
parent 315ab1a3e7
commit a0db6a4d5a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233308
5 changed files with 52 additions and 0 deletions

View file

@ -887,6 +887,7 @@
SUBDIR += p5-HTML-Template-Pluggable
SUBDIR += p5-HTML-TokeParser-Simple
SUBDIR += p5-HTML-Tree
SUBDIR += p5-HTML-TreeBuilder-LibXML
SUBDIR += p5-HTML-TreeBuilder-XPath
SUBDIR += p5-HTML-Webmake
SUBDIR += p5-HTML-Widget

View file

@ -0,0 +1,26 @@
# New ports collection makefile for: p5-HTML-TreeBuilder-LibXML
# Date created: 2009-04-16
# Whom: Masahiro Teramoto <markun@onohara.to>
#
# $FreeBSD$
#
PORTNAME= HTML-TreeBuilder-LibXML
PORTVERSION= 0.04
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= markun@onohara.to
COMMENT= HTML::TreeBuilder::XPath compatible interface with libxml
BUILD_DEPENDS= p5-Filter>=0:${PORTSDIR}/devel/p5-Filter \
p5-XML-LibXML>=1.69:${PORTSDIR}/textproc/p5-XML-LibXML
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= HTML::TreeBuilder::LibXML::Node.3 \
HTML::TreeBuilder::LibXML.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (HTML-TreeBuilder-LibXML-0.04.tar.gz) = 126ed3b0424b4f6f240530c73f6f9b5f
SHA256 (HTML-TreeBuilder-LibXML-0.04.tar.gz) = 22b3358c46722b1c6fd5e0888f3ef22ece80e3fcac75ef99b543477b1694094c
SIZE (HTML-TreeBuilder-LibXML-0.04.tar.gz) = 42380

View file

@ -0,0 +1,12 @@
HTML::TreeBuilder is bit slow for some use case.
and, XML::LibXML is very fast! I want to use it.
But, some libraries uses HTML::TreeBuilder.
HTML::TreeBuilder::LibXML is drop-in-replacement
for HTML::TreeBuilder::XPath.
Currently, this module implements good enough methods
for work with Web::Scraper.
Author: MATSUNO Tokuhiro <tokuhirom+cpan@gmail.com>
WWW: http://search.cpan.org/~tokuhirom/HTML-TreeBuilder-LibXML/

View file

@ -0,0 +1,10 @@
@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/TreeBuilder/LibXML/.packlist
%%SITE_PERL%%/HTML/TreeBuilder/LibXML/Node.pm
%%SITE_PERL%%/HTML/TreeBuilder/LibXML.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/TreeBuilder/LibXML
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/TreeBuilder
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML
@dirrmtry %%SITE_PERL%%/HTML/TreeBuilder/LibXML
@dirrmtry %%SITE_PERL%%/HTML/TreeBuilder
@dirrmtry %%SITE_PERL%%/HTML