pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/ocaml-mtime Added time/ocaml-mtime, a monotonic w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b572fae45a43
branches:  trunk
changeset: 397653:b572fae45a43
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Mon Jul 01 16:06:55 2019 +0000

description:
Added time/ocaml-mtime, a monotonic wall clock library for OCaml.

This is needed as a dependency for some options of ocaml-git.

diffstat:

 time/ocaml-mtime/DESCR                                  |   3 +
 time/ocaml-mtime/Makefile                               |  20 ++++++++
 time/ocaml-mtime/PLIST                                  |  39 +++++++++++++++++
 time/ocaml-mtime/buildlink3.mk                          |  13 +++++
 time/ocaml-mtime/distinfo                               |   7 +++
 time/ocaml-mtime/options.mk                             |  22 +++++++++
 time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml |  14 ++++++
 7 files changed, 118 insertions(+), 0 deletions(-)

diffs (146 lines):

diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/DESCR    Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,3 @@
+Mtime has platform independent support for monotonic wall-clock time in pure
+OCaml. The additional Mtime_clock library provide access to a system monotonic
+clock.
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/Makefile Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+
+DISTNAME=      mtime-1.1.0
+PKGNAME=       ocaml-${DISTNAME}
+CATEGORIES=    time
+MASTER_SITES=  https://erratique.ch/software/mtime/releases/
+EXTRACT_SUFX=  .tbz
+
+MAINTAINER=    jaapb%NetBSD.org@localhost
+HOMEPAGE=      https://erratique.ch/software/mtime/releases/
+COMMENT=       Monotonic wall-clock time for OCaml
+LICENSE=       isc
+
+OCAML_USE_TOPKG=       yes
+OCAML_USE_OPAM=        yes
+
+.include "options.mk"
+.include "../../mk/ocaml.mk"
+.include "../../devel/ocamlbuild/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/PLIST    Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+${OCAML_SITELIB}/mtime/META
+${PLIST.js_of_ocaml}${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.a
+${PLIST.js_of_ocaml}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cma
+${PLIST.js_of_ocaml}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cmi
+${PLIST.js_of_ocaml}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cmti
+${PLIST.js_of_ocaml}${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cmx
+${PLIST.js_of_ocaml}${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cmxa
+${PLIST.js_of_ocaml}${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.cmxs
+${PLIST.js_of_ocaml}${OCAML_SITELIB}/mtime/jsoo/mtime_clock.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime.a
+${OCAML_SITELIB}/mtime/mtime.cma
+${OCAML_SITELIB}/mtime/mtime.cmi
+${OCAML_SITELIB}/mtime/mtime.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime.cmxs
+${OCAML_SITELIB}/mtime/mtime.mli
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime_top.a
+${OCAML_SITELIB}/mtime/mtime_top.cma
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime_top.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime_top.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/mtime_top.cmxs
+${OCAML_SITELIB}/mtime/mtime_top_init.ml
+${OCAML_SITELIB}/mtime/opam
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/os/libmtime_clock_stubs.a
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/os/mtime_clock.a
+${OCAML_SITELIB}/mtime/os/mtime_clock.cma
+${OCAML_SITELIB}/mtime/os/mtime_clock.cmi
+${OCAML_SITELIB}/mtime/os/mtime_clock.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/os/mtime_clock.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/os/mtime_clock.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/mtime/os/mtime_clock.cmxs
+${OCAML_SITELIB}/mtime/os/mtime_clock.mli
+${OCAML_SITELIB}/stublibs/dllmtime_clock_stubs.so
+share/doc/mtime/CHANGES.md
+share/doc/mtime/LICENSE.md
+share/doc/mtime/README.md
+share/doc/mtime/min_os.ml
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/buildlink3.mk    Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+
+BUILDLINK_TREE+=       ocaml-mtime
+
+.if !defined(OCAML_MTIME_BUILDLINK3_MK)
+OCAML_MTIME_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-mtime+=    ocaml-mtime>=1.1.0
+BUILDLINK_PKGSRCDIR.ocaml-mtime?=      ../../time/ocaml-mtime
+
+.endif # OCAML_MTIME_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -ocaml-mtime
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/distinfo Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+
+SHA1 (mtime-1.1.0.tbz) = a9c8c2324565bd7850cc29ee86f5e655800082cd
+RMD160 (mtime-1.1.0.tbz) = 5fef7eb2a2400e1a5254176ab74d6be4ca4631bd
+SHA512 (mtime-1.1.0.tbz) = 8ed5dae589dd27fc6e748218a9d9fb9d7d954d231fc2100d61c1b336e0ed38a215bc608cdea9965547729177c78c868c1de6a5ceac6735686a3de1c4a791746c
+Size (mtime-1.1.0.tbz) = 15467 bytes
+SHA1 (patch-src-jsoo_mtime__clock.ml) = 6588c65526f64f502d5e67edc27ee6f50b89fa7b
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/options.mk       Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: options.mk,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ocaml-mtime
+PKG_SUPPORTED_OPTIONS= js_of_ocaml
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   js_of_ocaml
+
+###
+### js_of_ocaml support
+###
+.if !empty(PKG_OPTIONS:Mjs_of_ocaml)
+.include "../../devel/js_of_ocaml/buildlink3.mk"
+PLIST.js_of_ocaml=     yes
+OCAML_TOPKG_FLAGS+=    --with-js_of_ocaml true
+.else
+OCAML_TOPKG_FLAGS+= --with-js_of_ocaml false
+.endif
diff -r 25089cd9b1f5 -r b572fae45a43 time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml   Mon Jul 01 16:06:55 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src-jsoo_mtime__clock.ml,v 1.1 2019/07/01 16:06:55 jaapb Exp $
+
+Correctly include Js_of_ocaml module
+--- src-jsoo/mtime_clock.ml.orig       2017-06-24 16:14:03.000000000 +0000
++++ src-jsoo/mtime_clock.ml
+@@ -4,6 +4,8 @@
+    mtime v1.1.0
+   ---------------------------------------------------------------------------*)
+ 
++open Js_of_ocaml
++
+ let us_to_ns = 1000L (* microsecond to nanosecond uint64 multiplier *)
+ 
+ (* Get a handle on JavaScript's performance.now *)



Home | Main Index | Thread Index | Old Index