pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ocaml-findlib - Removed ocaml-findlib-register, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/30a6f02c2eba
branches: trunk
changeset: 349040:30a6f02c2eba
user: jaapb <jaapb%pkgsrc.org@localhost>
date: Sat Jun 25 13:55:15 2016 +0000
description:
- Removed ocaml-findlib-register, no longer needed;
- Updated INSTALL fragment to detect and add to ld.conf the autodetected
libraries that are part of the standard ocaml installation
Discussed on packages@ and OK'd by jperkin
diffstat:
devel/ocaml-findlib/INSTALL | 22 ++++++++++++++++++++
devel/ocaml-findlib/Makefile | 17 +++++++--------
devel/ocaml-findlib/PLIST | 3 +-
devel/ocaml-findlib/files/ocaml-findlib-register.sh | 23 ---------------------
4 files changed, 31 insertions(+), 34 deletions(-)
diffs (123 lines):
diff -r a4499712b8cf -r 30a6f02c2eba devel/ocaml-findlib/INSTALL
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-findlib/INSTALL Sat Jun 25 13:55:15 2016 +0000
@@ -0,0 +1,22 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1 2016/06/25 13:55:15 jaapb Exp $
+
+GREP="@GREP@"
+OCAML_FINDLIB_DIRS="@OCAML_FINDLIB_DIRS@"
+OCAML_SITELIBDIR="@OCAML_SITELIBDIR@"
+TOUCH="@TOUCH@"
+
+LDCONF="@PREFIX@/lib/ocaml/ld.conf"
+
+case "${STAGE}" in
+POST-INSTALL)
+ ${TOUCH} "${LDCONF}.tmp"
+ for i in ${OCAML_FINDLIB_DIRS}
+ do
+ ${GREP} -F -v -- "${OCAML_SITELIBDIR}/$i" < "${LDCONF}" > "${LDCONF}.tmp"
+ ${ECHO} "@PREFIX@/${OCAML_SITELIBDIR}/$i" >> "${LDCONF}.tmp"
+ mv "${LDCONF}.tmp" "${LDCONF}"
+ done
+ ;;
+esac
diff -r a4499712b8cf -r 30a6f02c2eba devel/ocaml-findlib/Makefile
--- a/devel/ocaml-findlib/Makefile Sat Jun 25 13:52:28 2016 +0000
+++ b/devel/ocaml-findlib/Makefile Sat Jun 25 13:55:15 2016 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.28 2016/05/05 09:42:19 jaapb Exp $
+# $NetBSD: Makefile,v 1.29 2016/06/25 13:55:15 jaapb Exp $
DISTNAME= findlib-1.6.2
PKGNAME= ocaml-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://download.camlcity.org/download/
@@ -10,12 +11,15 @@
COMMENT= Library finder for OCaml
LICENSE= mit
+OCAML_FINDLIB_DIRS+= bigarray bytes compiler-libs dynlink findlib graphics \
+ ocamldoc num-top num stdlib str threads unix
+
.include "../../mk/ocaml.mk"
# Undeclared dependencies between different components
MAKE_JOBS_SAFE= no
-USE_TOOLS+= gmake m4 bash
+USE_TOOLS+= gmake m4 bash fgrep:run sh:run
USE_PKGLOCALEDIR= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= -bindir ${PREFIX}/bin
@@ -35,7 +39,8 @@
CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf
-USE_TOOLS+= fgrep:run sh:run
+FILES_SUBST+= OCAML_FINDLIB_DIRS="${OCAML_FINDLIB_DIRS}" OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
+
SUBST_CLASSES+= ofr
SUBST_STAGE.ofr= pre-configure
SUBST_FILES.ofr= ocaml-findlib-register.sh
@@ -48,12 +53,6 @@
SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config
SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin','
-post-extract:
- ${CP} ${FILESDIR}/ocaml-findlib-register.sh ${WRKSRC}
-
-post-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/ocaml-findlib-register.sh ${DESTDIR}${PREFIX}/libexec/ocaml-findlib-register
-
do-test:
${RUN} cd ${WRKSRC}; ${SH} itest
diff -r a4499712b8cf -r 30a6f02c2eba devel/ocaml-findlib/PLIST
--- a/devel/ocaml-findlib/PLIST Sat Jun 25 13:52:28 2016 +0000
+++ b/devel/ocaml-findlib/PLIST Sat Jun 25 13:55:15 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2016/05/05 09:42:19 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.11 2016/06/25 13:55:15 jaapb Exp $
bin/ocamlfind
${OCAML_SITELIB}/bigarray/META
${OCAML_SITELIB}/bytes/META
@@ -38,7 +38,6 @@
${OCAML_SITELIB}/threads/META
${OCAML_SITELIB}/unix/META
lib/ocaml/topfind
-libexec/ocaml-findlib-register
@comment man/man1/ocamlfind.1
@comment man/man5/META.5
@comment man/man5/findlib.conf.5
diff -r a4499712b8cf -r 30a6f02c2eba devel/ocaml-findlib/files/ocaml-findlib-register.sh
--- a/devel/ocaml-findlib/files/ocaml-findlib-register.sh Sat Jun 25 13:52:28 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-#! @SH@
-set -eu
-
-ldconf="@PREFIX@/lib/ocaml/ld.conf"
-fgrep="@FGREP@"
-
-usage() {
- echo "usage: $0 <add|del> directory" 1>&2
- exit 1
-}
-
-test $# = 2 || usage
-
-action="$1"
-dir="$2"
-
-test "$action" = "add" || test "$action" = "del" || usage
-
-$fgrep -v -- "$dir" < "${ldconf}" > "${ldconf}.tmp"
-if test "$action" = "add"; then
- printf "%s\\n" "$dir" >> "${ldconf}.tmp"
-fi
-mv -f "${ldconf}.tmp" "${ldconf}"
Home |
Main Index |
Thread Index |
Old Index