aboutsummaryrefslogtreecommitdiff
path: root/devel/ocaml-ulex/pkg-install
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2004-03-19 01:56:37 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2004-03-19 01:56:37 +0000
commitf2177fd0c86ae0ba7bb72812d202e32f4f139808 (patch)
tree8ee3d26ded2c26c766e4edd4d242e3b5d6056ad2 /devel/ocaml-ulex/pkg-install
parente3eda8d4d1322e5bb0e3d9f05f95798a85a2508f (diff)
Notes
Diffstat (limited to 'devel/ocaml-ulex/pkg-install')
-rw-r--r--devel/ocaml-ulex/pkg-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/devel/ocaml-ulex/pkg-install b/devel/ocaml-ulex/pkg-install
new file mode 100644
index 000000000000..6b2520e4454f
--- /dev/null
+++ b/devel/ocaml-ulex/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "${PKG_PREFIX}/lib/ocaml/site-lib/ulex" >> ${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 ulex ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
+ rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
+fi