pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/ocaml-opam Obviously, we can't install opam using...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c74892459b3f
branches:  trunk
changeset: 367946:c74892459b3f
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Fri Sep 08 19:10:21 2017 +0000

description:
Obviously, we can't install opam using opam, as it hasn't been installed
yet, so do it explicitly using the opam-installer we just built

diffstat:

 misc/ocaml-opam/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0b94d3b62419 -r c74892459b3f misc/ocaml-opam/Makefile
--- a/misc/ocaml-opam/Makefile  Fri Sep 08 19:09:26 2017 +0000
+++ b/misc/ocaml-opam/Makefile  Fri Sep 08 19:10:21 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2017/09/08 16:50:46 jaapb Exp $
+# $NetBSD: Makefile,v 1.18 2017/09/08 19:10:21 jaapb Exp $
 
 VERSION=       2.0.0_beta4
 GITHUB_PROJECT=        opam
@@ -15,6 +15,14 @@
 MAKE_JOBS_SAFE=        no
 
 OCAML_USE_JBUILDER=    yes
+OCAML_USE_OPAM=                no # obviously
+
+do-install:
+       cd ${WRKSRC} && _build/install/default/bin/opam-installer -i --prefix \
+                       ${DESTDIR}${PREFIX} \
+                       --libdir ${OCAML_SITELIBDIR} \
+                       --docdir ${DESTDIR}/${OCAML_TOPKG_DOCDIR} \
+                       opam.install
 
 .include "../../devel/ocaml-cmdliner/buildlink3.mk"
 .include "../../devel/ocaml-extlib/buildlink3.mk"



Home | Main Index | Thread Index | Old Index