pkgsrc/textproc/p5-XML-SAX/DEINSTALL
heinz 62cb079000 - The package supports installation to DESTDIR. The only issue was the
creation of the parser registry (ParserDetails.ini) at installation
  time which does not work if using DESTDIR.
  Instead of breaking abstraction barriers (use of _USE_DESTDIR) to make
  this work, this task was moved to INSTALL/DEINSTALL scripts where it
  really belongs, which incidentally also solves the problem described
  above.

- In order to move the creation of the parser registry to the pkgsrc
  scripts, Makefile.PL was changed (through patch-aa) to respect the
  variable SKIP_SAX_INSTALL (inspired by XML::LibXML).

- File::Temp is a part of Perl since 5.6.1 so we do not need an explicit
  DEPENDS line for this.
2007-06-13 23:17:31 +00:00

11 lines
273 B
Text

# $NetBSD: DEINSTALL,v 1.1 2007/06/13 23:17:31 heinz Exp $
case ${STAGE} in
DEINSTALL)
${PERL5} -I@PERL5_INSTALLVENDORLIB@ -MXML::SAX -e "XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()"
${ECHO} "Removed parser from XML::SAX registry."
;;
esac