pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ocaml-jbuilder
Module Name: pkgsrc
Committed By: jaapb
Date: Tue Jul 11 11:14:58 UTC 2017
Added Files:
pkgsrc/devel/ocaml-jbuilder: DESCR Makefile PLIST buildlink3.mk
distinfo
pkgsrc/devel/ocaml-jbuilder/patches: patch-Makefile
Log Message:
Added devel/ocaml-jbuilder, a build system for OCaml packages.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ocaml-jbuilder/DESCR \
pkgsrc/devel/ocaml-jbuilder/Makefile pkgsrc/devel/ocaml-jbuilder/PLIST \
pkgsrc/devel/ocaml-jbuilder/buildlink3.mk \
pkgsrc/devel/ocaml-jbuilder/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ocaml-jbuilder/patches/patch-Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/ocaml-jbuilder/DESCR
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/DESCR:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/DESCR Tue Jul 11 11:14:58 2017
@@ -0,0 +1 @@
+Jbuilder is a build system for OCaml/Reason projects only.
Index: pkgsrc/devel/ocaml-jbuilder/Makefile
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/Makefile:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/Makefile Tue Jul 11 11:14:58 2017
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2017/07/11 11:14:58 jaapb Exp $
+
+VERSION= 1.0_beta10
+GITHUB_PROJECT= jbuilder
+GITHUB_TAG= ${VERSION:S/_/+/}
+DISTNAME= ${GITHUB_PROJECT}-${GITHUB_TAG}
+PKGNAME= ocaml-${GITHUB_PROJECT}-${VERSION}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=janestreet/}
+
+MAINTAINER= jaapb%NetBSD.org@localhost
+HOMEPAGE= https://github.com/janestreet/jbuilder/
+COMMENT= Composable build system for OCaml
+LICENSE= apache-2.0
+
+WRKSRC= ${WRKDIR}/jbuilder-1.0-beta10
+USE_LANGUAGES= # none
+
+BUILD_TARGET= default
+MAKE_ENV+= MAKE_JOBS=${MAKE_JOBS}
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1 ${OCAML_SITELIBDIR}/jbuilder
+
+OCAML_USE_FINDLIB= yes
+OCAML_USE_OPAM= yes
+
+.include "../../mk/ocaml.mk"
+
+# Installation via OPAM does not work (OPAM needs to be set up)
+#do-install:
+# for i in META; do \
+# ${INSTALL_DATA} ${WRKSRC}/_build/install/default/lib/jbuilder/$$i \
+# ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/jbuilder; \
+# done;
+# for i in jbuilder; do \
+# ${INSTALL_PROGRAM} ${WRKSRC}/_build/install/default/bin/$$i \
+# ${DESTDIR}${PREFIX}/bin; \
+# done;
+# for i in jbuilder.1 jbuilder-build.1 jbuilder-external-lib-deps.1 \
+# jbuilder-install.1 jbuilder-installed-libraries.1 jbuilder-runtest.1 \
+# jbuilder-uninstall.1; do \
+# ${INSTALL_MAN} ${WRKSRC}/_build/install/default/man/man1/$$i \
+# ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
+# done;
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/ocaml-jbuilder/PLIST
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/PLIST:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/PLIST Tue Jul 11 11:14:58 2017
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/11 11:14:58 jaapb Exp $
+bin/jbuilder
+${OCAML_SITELIB}/jbuilder/META
+${OCAML_SITELIB}/jbuilder/opam
+man/man1/jbuilder-build.1
+man/man1/jbuilder-clean.1
+man/man1/jbuilder-exec.1
+man/man1/jbuilder-external-lib-deps.1
+man/man1/jbuilder-install.1
+man/man1/jbuilder-installed-libraries.1
+man/man1/jbuilder-rules.1
+man/man1/jbuilder-runtest.1
+man/man1/jbuilder-subst.1
+man/man1/jbuilder-uninstall.1
+man/man1/jbuilder.1
+share/doc/jbuilder/CHANGES.md
+share/doc/jbuilder/LICENSE.md
+share/doc/jbuilder/README.md
Index: pkgsrc/devel/ocaml-jbuilder/buildlink3.mk
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/buildlink3.mk:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/buildlink3.mk Tue Jul 11 11:14:58 2017
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2017/07/11 11:14:58 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-jbuilder
+
+.if !defined(OCAML_JBUILDER_BUILDLINK3_MK)
+OCAML_JBUILDER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-jbuilder+= ocaml-jbuilder>=1.0_beta10
+BUILDLINK_PKGSRCDIR.ocaml-jbuilder?= ../../devel/ocaml-jbuilder
+.endif # OCAML_JBUILDER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-jbuilder
Index: pkgsrc/devel/ocaml-jbuilder/distinfo
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/distinfo:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/distinfo Tue Jul 11 11:14:58 2017
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/07/11 11:14:58 jaapb Exp $
+
+SHA1 (jbuilder-1.0+beta10.tar.gz) = b16c8f743223bf24383c6eb1e8c518721456ed15
+RMD160 (jbuilder-1.0+beta10.tar.gz) = 13db40140a09503bfdd66a45f400930410507e8f
+SHA512 (jbuilder-1.0+beta10.tar.gz) = 83945d9cf3c6d61c33b83c4645b6c6b980b13f716a0541cd1833ce98543ca132a7c0efe4a46b5145e61159e7f8223fe4d1d6009b663bafb5fc79a2115fd5f521
+Size (jbuilder-1.0+beta10.tar.gz) = 251576 bytes
+SHA1 (patch-Makefile) = f2744c0f710d165746b81ae000471d6d28716a5e
Index: pkgsrc/devel/ocaml-jbuilder/patches/patch-Makefile
diff -u /dev/null pkgsrc/devel/ocaml-jbuilder/patches/patch-Makefile:1.1
--- /dev/null Tue Jul 11 11:14:58 2017
+++ pkgsrc/devel/ocaml-jbuilder/patches/patch-Makefile Tue Jul 11 11:14:58 2017
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.1 2017/07/11 11:14:58 jaapb Exp $
+
+Use MAKE_JOBS rather than default number
+--- Makefile.orig 2017-04-17 13:50:54.000000000 +0000
++++ Makefile
+@@ -2,7 +2,7 @@ INSTALL_ARGS := $(if $(PREFIX),--prefix
+ BIN := ./_build/default/bin/main.exe
+
+ default: boot.exe
+- ./boot.exe -j 4 --dev
++ ./boot.exe -j ${MAKE_JOBS} --dev
+
+ boot.exe: bootstrap.ml
+ ocaml bootstrap.ml
Home |
Main Index |
Thread Index |
Old Index