1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/ftp/ocaml-ocurl/pkg-install
Thierry Thomas 75236c0e70 Add ocaml-ocurl 0.2.0, an interface for OCaml to the curl lib.
PR:		70085
Submitted by:	Marwan BURELLE
2004-08-08 19:20:32 +00:00

10 lines
367 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
echo "${PKG_PREFIX}/lib/ocaml/site-lib/curl" >> ${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 curl ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
fi