freebsd-ports/textproc/p5-XML-LibXML/pkg-install
Baptiste Daroussin 357917bd8e Register and unregister both XML::LibXML::SAX and XML::LibXML::SAX::Parser
Make post-install script actually working
Remove post-install target from the port and the "normal" make install in sources already register the parsers
2013-03-14 18:04:06 +00:00

9 lines
441 B
Bash

#!/bin/sh
if [ "X$2" = "XPOST-INSTALL" ]; then
perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
perl -MXML::SAX -e "XML::SAX->add_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
elif [ "X$2" = "XDEINSTALL" ]; then
perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX'.\$_)->save_parsers()"
perl -MXML::SAX -e "XML::SAX->remove_parser('XML::LibXML::SAX::Parser'.\$_)->save_parsers()"
fi