summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2004-03-04 22:17:01 +0000
committerMark Linimon <linimon@FreeBSD.org>2004-03-04 22:17:01 +0000
commitbee85b9375a71cc013f5200f07f614aadad872b9 (patch)
tree9f2072b473d4c34cf7cd96ac2faca88072101ee7 /textproc
parentMark this port for i386 only. (diff)
Update to 0.26: build_depends change from p5-XML-Parser to p5-XML-LibXML due
to author's suggestion: "At the moment, XML::LibXML is quicker than XML::Parser and supports HTML parsing." Minor code additions (see 0.24) and bugfixes (all versions); see Changes for details. PR: ports/57952 Submitted by: Cheng-Lung Sung <clsung@dragon2.net> Maintainer timeout: 4 months
Notes
Notes: svn path=/head/; revision=102956
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-XML-DT/Makefile12
-rw-r--r--textproc/p5-XML-DT/distinfo2
-rw-r--r--textproc/p5-XML-DT/files/patch-Makefile.PL47
-rw-r--r--textproc/p5-XML-DT/pkg-plist47
4 files changed, 53 insertions, 55 deletions
diff --git a/textproc/p5-XML-DT/Makefile b/textproc/p5-XML-DT/Makefile
index bc9ad2eca357..21bf7a19ff5f 100644
--- a/textproc/p5-XML-DT/Makefile
+++ b/textproc/p5-XML-DT/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= XML-DT
-PORTVERSION= 0.20
+PORTVERSION= 0.26
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= XML
@@ -15,17 +15,13 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Perl module for down translation of XML to strings
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser
+BUILD_DEPENDS= ${SITE_PERL}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML
+BUILD_DEPENDS+= ${SITE_PERL}/LWP/Simple.pm:${PORTSDIR}/www/p5-libwww
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
+MAN1= mkdtskel.1 mkdtdskel.1
MAN3= XML::DT.3
-post-install:
- @${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples
- @${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples/XPath
- @${INSTALL_DATA} ${WRKSRC}/examples/XPath/* ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples/XPath
- @${INSTALL_DATA} `${LS} -d ${WRKSRC}/examples/* | ${GREP} -v XPath` ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples
-
.include <bsd.port.mk>
diff --git a/textproc/p5-XML-DT/distinfo b/textproc/p5-XML-DT/distinfo
index 80a2243a27fd..4410c7ddcc98 100644
--- a/textproc/p5-XML-DT/distinfo
+++ b/textproc/p5-XML-DT/distinfo
@@ -1 +1 @@
-MD5 (XML-DT-0.20.tar.gz) = 966c7f1402b3b2a7839f4c14f5a1da9f
+MD5 (XML-DT-0.26.tar.gz) = ae8ffae8346514ea1e65029ea2c3bea0
diff --git a/textproc/p5-XML-DT/files/patch-Makefile.PL b/textproc/p5-XML-DT/files/patch-Makefile.PL
new file mode 100644
index 000000000000..2c7eba6671cd
--- /dev/null
+++ b/textproc/p5-XML-DT/files/patch-Makefile.PL
@@ -0,0 +1,47 @@
+--- Makefile.PL.orig Sun Oct 12 22:45:13 2003
++++ Makefile.PL Mon Oct 13 20:53:10 2003
+@@ -9,26 +9,26 @@
+ 'LWP::Simple' => '1.35',
+ );
+
+-print "\n";
+-print " NOTE: Next versions will, possibly, deprecate XML::Parser backend.\n";
+-print " At the moment, XML::LibXML is quicker than XML::Parser and\n";
+-print " supports HTML parsing\n\n";
+-
+-print "I need a XML Back-end (XML::Parser >= $xmlparser_version or XML::LibXML >= $xmllibxml_version\n";
+-do {
+- print "Sorry, I didn't understand the answer.\n" if ($answer);
+- print "Should I use 'XML::Parser' or 'XML::LibXML'? [XML::LibXML] ";
+- $XML = undef;
+- $answer = <STDIN>;
+- print "\n";
+- if ($answer =~ m/^XML::Parser$/i) {
+- $XML = 'XML::Parser';
+- %req_modules = (%req_modules, $XML => $xmlparser_version);
+- } elsif ($answer =~ m/^\s*$/ || $answer =~ m/^XML::LibXML$/i) {
++#print "\n";
++#print " NOTE: Next versions will, possibly, deprecate XML::Parser backend.\n";
++#print " At the moment, XML::LibXML is quicker than XML::Parser and\n";
++#print " supports HTML parsing\n\n";
++#
++#print "I need a XML Back-end (XML::Parser >= $xmlparser_version or XML::LibXML >= $xmllibxml_version\n";
++#do {
++# print "Sorry, I didn't understand the answer.\n" if ($answer);
++# print "Should I use 'XML::Parser' or 'XML::LibXML'? [XML::LibXML] ";
++# $XML = undef;
++# $answer = <STDIN>;
++# print "\n";
++# if ($answer =~ m/^XML::Parser$/i) {
++# $XML = 'XML::Parser';
++# %req_modules = (%req_modules, $XML => $xmlparser_version);
++# } elsif ($answer =~ m/^\s*$/ || $answer =~ m/^XML::LibXML$/i) {
+ $XML = 'XML::LibXML';
+ %req_modules = (%req_modules, $XML => $xmllibxml_version);
+- }
+-} until defined $XML;
++# }
++#} until defined $XML;
+
+ my $pattern = uc($XML);
+
diff --git a/textproc/p5-XML-DT/pkg-plist b/textproc/p5-XML-DT/pkg-plist
index be416475c54d..5ac51467f078 100644
--- a/textproc/p5-XML-DT/pkg-plist
+++ b/textproc/p5-XML-DT/pkg-plist
@@ -1,51 +1,6 @@
bin/mkdtskel
+bin/mkdtdskel
%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/DT/.packlist
%%SITE_PERL%%/XML/DT.pm
-%%SITE_PERL%%/XML/DT/examples/XPath/ex1.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex1.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex2.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex2.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex3.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex3.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex4.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex4.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex5.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex5.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex6.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex6.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex7.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex7.xml
-%%SITE_PERL%%/XML/DT/examples/XPath/ex8.pl
-%%SITE_PERL%%/XML/DT/examples/XPath/ex8.xml
-%%SITE_PERL%%/XML/DT/examples/10nov.sgm
-%%SITE_PERL%%/XML/DT/examples/README
-%%SITE_PERL%%/XML/DT/examples/arq.pl
-%%SITE_PERL%%/XML/DT/examples/arq.xml
-%%SITE_PERL%%/XML/DT/examples/ex.xml
-%%SITE_PERL%%/XML/DT/examples/ex1.pl
-%%SITE_PERL%%/XML/DT/examples/ex10.1.pl
-%%SITE_PERL%%/XML/DT/examples/ex10.2.pl
-%%SITE_PERL%%/XML/DT/examples/ex10.2.xml
-%%SITE_PERL%%/XML/DT/examples/ex10.3.pl
-%%SITE_PERL%%/XML/DT/examples/ex10.3.xml
-%%SITE_PERL%%/XML/DT/examples/ex11.1.pl
-%%SITE_PERL%%/XML/DT/examples/ex11.1.xml
-%%SITE_PERL%%/XML/DT/examples/ex11.5.pl
-%%SITE_PERL%%/XML/DT/examples/ex11.5.xml
-%%SITE_PERL%%/XML/DT/examples/ex2.pl
-%%SITE_PERL%%/XML/DT/examples/ex3.xml
-%%SITE_PERL%%/XML/DT/examples/ex5.pl
-%%SITE_PERL%%/XML/DT/examples/ex6.pl
-%%SITE_PERL%%/XML/DT/examples/ex7.pl
-%%SITE_PERL%%/XML/DT/examples/gcapaper2tex.pl
-%%SITE_PERL%%/XML/DT/examples/jj.dtd
-%%SITE_PERL%%/XML/DT/examples/lat1.html
-%%SITE_PERL%%/XML/DT/examples/makefile
-%%SITE_PERL%%/XML/DT/examples/makenewexample
-%%SITE_PERL%%/XML/DT/examples/pub.pl
-%%SITE_PERL%%/XML/DT/examples/publico.dtd
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/DT
-@dirrm %%SITE_PERL%%/XML/DT/examples/XPath
-@dirrm %%SITE_PERL%%/XML/DT/examples
-@dirrm %%SITE_PERL%%/XML/DT
@unexec rmdir %D/%%SITE_PERL%%/XML 2>/dev/null || true