2009-04-21 17:21:38 +00:00
|
|
|
# Template build file for 'perl-XML-SAX'.
|
|
|
|
pkgname=perl-XML-SAX
|
2011-10-08 06:56:30 +00:00
|
|
|
version=0.99
|
2011-10-13 18:35:17 +00:00
|
|
|
revision=1
|
2009-04-21 17:21:38 +00:00
|
|
|
wrksrc="XML-SAX-$version"
|
|
|
|
distfiles="${CPAN_SITE}/XML/XML-SAX-$version.tar.gz"
|
2011-07-18 14:42:50 +00:00
|
|
|
build_style=perl-module
|
2009-04-21 17:21:38 +00:00
|
|
|
short_desc="Perl interface to the SAX2 XML Parser"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-10-08 06:56:30 +00:00
|
|
|
homepage="http://search.cpan.org/dist/XML-SAX"
|
|
|
|
license="GPL-2"
|
|
|
|
checksum=32b04b8e36b6cc4cfc486de2d859d87af5386dd930f2383c49347050d6f5ad84
|
2009-04-21 17:21:38 +00:00
|
|
|
long_desc="
|
|
|
|
This module provides ways to parse XML documents. It is built on top of
|
|
|
|
XML::SAX::Expat, which is a lower level interface to James Clark's
|
|
|
|
expat library."
|
|
|
|
|
2009-10-17 01:09:18 +00:00
|
|
|
noarch=yes
|
2009-04-21 17:21:38 +00:00
|
|
|
Add_dependency full perl
|
|
|
|
Add_dependency full perl-XML-NamespaceSupport
|
2011-10-13 18:35:17 +00:00
|
|
|
Add_dependency full perl-XML-SAX-Base
|
2010-04-23 13:29:07 +00:00
|
|
|
|
|
|
|
post_stow()
|
|
|
|
{
|
|
|
|
# Register the SAX parsers into the registry.
|
|
|
|
LC_ALL=C perl -MXML::SAX -e \
|
|
|
|
"XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
|
|
|
2>&1 >/dev/null
|
2011-06-16 12:55:54 +00:00
|
|
|
[ $? -eq 0 ] && msg_normal "Added parser to XML::SAX registry.\n"
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_remove()
|
|
|
|
{
|
|
|
|
env LC_ALL=C perl -MXML::SAX -e \
|
|
|
|
"XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()" \
|
|
|
|
2>&1 >/dev/null
|
|
|
|
[ $? -eq 0 ] && msg_normal "Removed parser from XML::SAX registry.\n"
|
2010-04-23 13:29:07 +00:00
|
|
|
}
|