summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2017-09-08 19:10:21 +0000
committerjaapb <jaapb@pkgsrc.org>2017-09-08 19:10:21 +0000
commite5c666b5f56c1e3460b1d223c26f76d2adbe7a18 (patch)
tree98a18406ec543d81766051b6726c02203bb00c7a /misc
parent0fcad6ac08a93b3c18018e3f8d35faafc2a726ee (diff)
downloadpkgsrc-e5c666b5f56c1e3460b1d223c26f76d2adbe7a18.tar.gz
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 (limited to 'misc')
-rw-r--r--misc/ocaml-opam/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/ocaml-opam/Makefile b/misc/ocaml-opam/Makefile
index fb3be12a216..6cf12d5d192 100644
--- a/misc/ocaml-opam/Makefile
+++ b/misc/ocaml-opam/Makefile
@@ -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"