aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-XML-LibXML/pkg-install
blob: a6e6bdad8455fd5f40fdf7c4ecbc16cb01e803f8 (plain) (blame)
1
2
3
4
5
#!/usr/bin/perl
exit unless $ARGV[1]=~ /^(DE|POST\-)INSTALL$/;
$action=(($1 eq 'DE')?'remove':'add').'_parser';
eval "use XML::SAX;"; exit(-1) if $@;
XML::SAX->$action('XML::LibXML::SAX'.$_)->save_parsers() for('::Parser', '');