freebsd-ports/textproc/ocaml-expat/pkg-install
Pav Lucistnik 4c66496991 An ocaml wrapper for the Expat XML parsing library.
PR:		ports/77266
Submitted by:	Marwan Burelle <marwan.burelle@lri.fr>
2005-02-09 10:24:53 +00:00

9 lines
369 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/expat" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
elif [ "$2" = "DEINSTALL" ]; then
mv ${PKG_PREFIX}/lib/ocaml/ld.conf ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
grep -v expat ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
fi