From 6ce52c18af9e086c7631112b5bed16bcded0c7f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 23 Apr 2010 15:29:07 +0200 Subject: [PATCH] perl-XML-SAX: use post_stow(). --HG-- extra : convert_revision : 4f74a2f083291cb1d1d78e21547e1b3b66252d1f --- srcpkgs/perl-XML-SAX/template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template index aaf46c9d839..3c977dd1d07 100644 --- a/srcpkgs/perl-XML-SAX/template +++ b/srcpkgs/perl-XML-SAX/template @@ -16,3 +16,12 @@ long_desc=" 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." +}