vp-build/srcpkgs/perl-XML-SAX/template
Juan RP 6ce52c18af perl-XML-SAX: use post_stow().
--HG--
extra : convert_revision : 4f74a2f083291cb1d1d78e21547e1b3b66252d1f
2010-04-23 15:29:07 +02:00

28 lines
847 B
Plaintext

# Template build file for 'perl-XML-SAX'.
pkgname=perl-XML-SAX
version=0.96
revision=1
wrksrc="XML-SAX-$version"
distfiles="${CPAN_SITE}/XML/XML-SAX-$version.tar.gz"
build_style=perl_module
short_desc="Perl interface to the SAX2 XML Parser"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9bbef613afa42c46df008d537decc5a61df7e92d65463f3c900769f39e5c8e08
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."
noarch=yes
Add_dependency full perl
Add_dependency full perl-XML-NamespaceSupport
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
[ $? -eq 0 ] && echo "Added parser to XML::SAX registry."
}