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." +}