diff --git a/textproc/p5-XML-Filter-ExceptionLocator/Makefile b/textproc/p5-XML-Filter-ExceptionLocator/Makefile new file mode 100644 index 00000000000..2c0b14702fa --- /dev/null +++ b/textproc/p5-XML-Filter-ExceptionLocator/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/11/14 19:08:35 espie Exp $ + +COMMENT= "add line information to XML parse errors" + +MODULES= cpan +DISTNAME= XML-Filter-ExceptionLocator-1.00 +CATEGORIES= textproc devel + +# 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-SAX-ExpatXS + +.include diff --git a/textproc/p5-XML-Filter-ExceptionLocator/distinfo b/textproc/p5-XML-Filter-ExceptionLocator/distinfo new file mode 100644 index 00000000000..f19a993dc3b --- /dev/null +++ b/textproc/p5-XML-Filter-ExceptionLocator/distinfo @@ -0,0 +1,4 @@ +MD5 (XML-Filter-ExceptionLocator-1.00.tar.gz) = a25457770659b4484e00f2769f59ad25 +RMD160 (XML-Filter-ExceptionLocator-1.00.tar.gz) = 7280337b3e2775c8ff8b1e2f8b254a406d7646bd +SHA1 (XML-Filter-ExceptionLocator-1.00.tar.gz) = c98df7bb82c3da42d4e521bdb13a2e389b89176c +SIZE (XML-Filter-ExceptionLocator-1.00.tar.gz) = 3529 diff --git a/textproc/p5-XML-Filter-ExceptionLocator/pkg/DESCR b/textproc/p5-XML-Filter-ExceptionLocator/pkg/DESCR new file mode 100644 index 00000000000..56ecd7e08a3 --- /dev/null +++ b/textproc/p5-XML-Filter-ExceptionLocator/pkg/DESCR @@ -0,0 +1,12 @@ +This module implements a SAX filter which adds line-numbers and +column-numbers to errors generated by SAX handlers futher down the +pipeline. Written explicitly so that XML::Validator::Schema could +blame the correct line of XML for validation failures. + +NOTE: This module requires a SAX parser which correctly supports the +set_document_locator() call. At present there is just one, +XML::SAX::ExpatXS. If you've got a number of XML::SAX parsers +installed and you want to make sure XML::SAX::ExpatXS is used, do +this: + + $XML::SAX::ParserPackage = 'XML::SAX::ExpatXS'; diff --git a/textproc/p5-XML-Filter-ExceptionLocator/pkg/PLIST b/textproc/p5-XML-Filter-ExceptionLocator/pkg/PLIST new file mode 100644 index 00000000000..05b90c4e404 --- /dev/null +++ b/textproc/p5-XML-Filter-ExceptionLocator/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/14 19:08:35 espie Exp $ +${P5SITE}/XML/Filter/ +${P5SITE}/XML/Filter/Chucker.pm +${P5SITE}/XML/Filter/ExceptionLocator.pm +@man man/man3p/XML::Filter::ExceptionLocator.3p