SAX parser based on the perl interface to expat

This commit is contained in:
espie 2006-11-14 19:09:03 +00:00
parent e3e0fdc4fb
commit 8e2e2ca771
5 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/14 19:09:03 espie Exp $
COMMENT= "SAX2 driver based on expat"
MODULES= cpan
DISTNAME= XML-SAX-Expat-0.37
CATEGORIES= textproc
# perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= ::textproc/p5-XML-SAX \
::textproc/p5-XML-Parser \
::textproc/p5-XML-NamespaceSupport
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (XML-SAX-Expat-0.37.tar.gz) = c48024d363a1ff9abaf8f9af592d38cd
RMD160 (XML-SAX-Expat-0.37.tar.gz) = 2490de192e548fe94bea94d7db2eb8680e379c0e
SHA1 (XML-SAX-Expat-0.37.tar.gz) = 15055b315c72d25aad77bd9efbba8f70a7e80b0c
SIZE (XML-SAX-Expat-0.37.tar.gz) = 5329

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_PL,v 1.1.1.1 2006/11/14 19:09:03 espie Exp $
--- Makefile.PL.orig Tue Nov 14 11:48:36 2006
+++ Makefile.PL Tue Nov 14 11:49:18 2006
@@ -16,7 +16,7 @@ WriteMakefile(
## add ourselves to the list of installed parsers
-sub MY::install {
+sub dont {
package MY;
my $script = shift->SUPER::install(@_);
$script =~ s/install :: (.*)$/install :: $1 install_sax_expat/m;

View File

@ -0,0 +1,16 @@
This is an implementation of a SAX2 driver sitting on top of
Expat (XML::Parser).
It is still incomplete, though most of the basic SAX2 events should be
available.
XML::Parser has no listed callbacks for the following events, which are
therefore not presently generated (ways may be found in the future):
* ignorable_whitespace
* skipped_entity
* start_entity / end_entity
* resolve_entity
Note that this package currently does not register itself with XML::SAX,
so you have to add the parser manually before you can use it.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/14 19:09:03 espie Exp $
${P5SITE}/XML/SAX/Expat.pm
@man man/man3p/XML::SAX::Expat.3p