pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ocaml-jbuilder Added devel/ocaml-jbuilder, a bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fea7faf98639
branches:  trunk
changeset: 365160:fea7faf98639
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Tue Jul 11 11:14:58 2017 +0000

description:
Added devel/ocaml-jbuilder, a build system for OCaml packages.

diffstat:

 devel/ocaml-jbuilder/DESCR                  |   1 +
 devel/ocaml-jbuilder/Makefile               |  45 +++++++++++++++++++++++++++++
 devel/ocaml-jbuilder/PLIST                  |  18 +++++++++++
 devel/ocaml-jbuilder/buildlink3.mk          |  12 +++++++
 devel/ocaml-jbuilder/distinfo               |   7 ++++
 devel/ocaml-jbuilder/patches/patch-Makefile |  14 +++++++++
 6 files changed, 97 insertions(+), 0 deletions(-)

diffs (121 lines):

diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/DESCR        Tue Jul 11 11:14:58 2017 +0000
@@ -0,0 +1,1 @@
+Jbuilder is a build system for OCaml/Reason projects only.
diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/Makefile     Tue Jul 11 11:14:58 2017 +0000
@@ -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"
diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/PLIST        Tue Jul 11 11:14:58 2017 +0000
@@ -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
diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/buildlink3.mk        Tue Jul 11 11:14:58 2017 +0000
@@ -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
diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/distinfo     Tue Jul 11 11:14:58 2017 +0000
@@ -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
diff -r 8d4cfb339766 -r fea7faf98639 devel/ocaml-jbuilder/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-jbuilder/patches/patch-Makefile       Tue Jul 11 11:14:58 2017 +0000
@@ -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