From a0db6a4d5a8044701299acf1e94500ee6adae66e Mon Sep 17 00:00:00 2001 From: Wesley Shields Date: Wed, 6 May 2009 14:40:32 +0000 Subject: [PATCH] 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 --- www/Makefile | 1 + www/p5-HTML-TreeBuilder-LibXML/Makefile | 26 ++++++++++++++++++++++++ www/p5-HTML-TreeBuilder-LibXML/distinfo | 3 +++ www/p5-HTML-TreeBuilder-LibXML/pkg-descr | 12 +++++++++++ www/p5-HTML-TreeBuilder-LibXML/pkg-plist | 10 +++++++++ 5 files changed, 52 insertions(+) create mode 100644 www/p5-HTML-TreeBuilder-LibXML/Makefile create mode 100644 www/p5-HTML-TreeBuilder-LibXML/distinfo create mode 100644 www/p5-HTML-TreeBuilder-LibXML/pkg-descr create mode 100644 www/p5-HTML-TreeBuilder-LibXML/pkg-plist diff --git a/www/Makefile b/www/Makefile index 0b7605486aab..4c8223799641 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/p5-HTML-TreeBuilder-LibXML/Makefile b/www/p5-HTML-TreeBuilder-LibXML/Makefile new file mode 100644 index 000000000000..4f8b80ae1240 --- /dev/null +++ b/www/p5-HTML-TreeBuilder-LibXML/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: p5-HTML-TreeBuilder-LibXML +# Date created: 2009-04-16 +# Whom: Masahiro Teramoto +# +# $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 diff --git a/www/p5-HTML-TreeBuilder-LibXML/distinfo b/www/p5-HTML-TreeBuilder-LibXML/distinfo new file mode 100644 index 000000000000..bce3ba01a856 --- /dev/null +++ b/www/p5-HTML-TreeBuilder-LibXML/distinfo @@ -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 diff --git a/www/p5-HTML-TreeBuilder-LibXML/pkg-descr b/www/p5-HTML-TreeBuilder-LibXML/pkg-descr new file mode 100644 index 000000000000..b0a6d409f02e --- /dev/null +++ b/www/p5-HTML-TreeBuilder-LibXML/pkg-descr @@ -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 +WWW: http://search.cpan.org/~tokuhirom/HTML-TreeBuilder-LibXML/ diff --git a/www/p5-HTML-TreeBuilder-LibXML/pkg-plist b/www/p5-HTML-TreeBuilder-LibXML/pkg-plist new file mode 100644 index 000000000000..1782db564cd9 --- /dev/null +++ b/www/p5-HTML-TreeBuilder-LibXML/pkg-plist @@ -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