aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2004-03-19 09:47:26 +0800
committerijliao <ijliao@FreeBSD.org>2004-03-19 09:47:26 +0800
commit0aa46a0ab0dbbb791b6dd3a9a0b8f44e55118ea6 (patch)
tree82f893aa0382d94011669d9476d705fb8a960eec
parentcbefc4dd9b72e0f0c3c1a708db56656e793f110f (diff)
downloadfreebsd-ports-gnome-0aa46a0ab0dbbb791b6dd3a9a0b8f44e55118ea6.tar.gz
freebsd-ports-gnome-0aa46a0ab0dbbb791b6dd3a9a0b8f44e55118ea6.tar.zst
freebsd-ports-gnome-0aa46a0ab0dbbb791b6dd3a9a0b8f44e55118ea6.zip
fix package
-rw-r--r--devel/ocaml-pcre/Makefile5
-rw-r--r--devel/ocaml-pcre/pkg-install9
2 files changed, 14 insertions, 0 deletions
diff --git a/devel/ocaml-pcre/Makefile b/devel/ocaml-pcre/Makefile
index dcc6bc1181ae..846591be95a3 100644
--- a/devel/ocaml-pcre/Makefile
+++ b/devel/ocaml-pcre/Makefile
@@ -37,7 +37,12 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.endif
+PKGDEINSTALL= ${PKGINSTALL}
+
post-install:
+ @${FIND} ${PREFIX}/lib/ocaml/site-lib/pcre -type f | \
+ ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST}
+ @${ECHO_CMD} "@dirrm lib/ocaml/site-lib/pcre" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ocamlfind remove pcre 2>/dev/null || true" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/devel/ocaml-pcre/pkg-install b/devel/ocaml-pcre/pkg-install
new file mode 100644
index 000000000000..0e6794709dfd
--- /dev/null
+++ b/devel/ocaml-pcre/pkg-install
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$2" = "POST-INSTALL" ]; then
+ echo "${PKG_PREFIX}/lib/ocaml/site-lib/pcre" >> ${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 pcre ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp > ${PKG_PREFIX}/lib/ocaml/ld.conf
+ rm -f ${PKG_PREFIX}/lib/ocaml/ld.conf.tmp
+fi