pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/ocaml-opam



Module Name:    pkgsrc
Committed By:   jaapb
Date:           Fri Sep  8 19:10:21 UTC 2017

Modified Files:
        pkgsrc/misc/ocaml-opam: Makefile

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/misc/ocaml-opam/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/ocaml-opam/Makefile
diff -u pkgsrc/misc/ocaml-opam/Makefile:1.17 pkgsrc/misc/ocaml-opam/Makefile:1.18
--- pkgsrc/misc/ocaml-opam/Makefile:1.17        Fri Sep  8 16:50:46 2017
+++ pkgsrc/misc/ocaml-opam/Makefile     Fri Sep  8 19:10:21 2017
@@ -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 @@ LICENSE=     gnu-lgpl-v3
 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