[BACK]Return to INSTALL CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / ocaml-findlib

File: [cvs.NetBSD.org] / pkgsrc / devel / ocaml-findlib / INSTALL (download)

Revision 1.1, Sat Jun 25 13:55:15 2016 UTC (5 years, 3 months ago) by jaapb
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, HEAD

- 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

#!@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