freebsd-ports/devel/ocaml-equeue/pkg-install
Thierry Thomas a935fb1183 Add ocaml-equeue 2.0.1, the Equeue library for OCaml.
PR:		69422
Submitted by:	David JULIEN
2004-12-28 22:38:04 +00:00

13 lines
542 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/shell" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
if test -d ${PKG_PREFIX}/lib/ocaml/site-lib/equeue-tcl; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/equeue-tcl" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
fi
elif [ "$2" = "DEINSTALL" ]; then
TMPFILE=`mktemp ${PKG_PREFIX}/lib/ocaml/ld.conf.XXX` || exit 1
cp ${PKG_PREFIX}/lib/ocaml/ld.conf ${TMPFILE}
grep -v "shell" ${TMPFILE} | grep -v "equeue-tcl" > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${TMPFILE}
fi