pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/ocaml-mtime
Module Name: pkgsrc
Committed By: jaapb
Date: Mon Jul 1 16:06:55 UTC 2019
Added Files:
pkgsrc/time/ocaml-mtime: DESCR Makefile PLIST buildlink3.mk distinfo
options.mk
pkgsrc/time/ocaml-mtime/patches: patch-src-jsoo_mtime__clock.ml
Log Message:
Added time/ocaml-mtime, a monotonic wall clock library for OCaml.
This is needed as a dependency for some options of ocaml-git.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/time/ocaml-mtime/DESCR \
pkgsrc/time/ocaml-mtime/Makefile pkgsrc/time/ocaml-mtime/PLIST \
pkgsrc/time/ocaml-mtime/buildlink3.mk pkgsrc/time/ocaml-mtime/distinfo \
pkgsrc/time/ocaml-mtime/options.mk
cvs rdiff -u -r0 -r1.1 \
pkgsrc/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/time/ocaml-mtime/DESCR
diff -u /dev/null pkgsrc/time/ocaml-mtime/DESCR:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/DESCR Mon Jul 1 16:06:55 2019
@@ -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.
Index: pkgsrc/time/ocaml-mtime/Makefile
diff -u /dev/null pkgsrc/time/ocaml-mtime/Makefile:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/Makefile Mon Jul 1 16:06:55 2019
@@ -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"
Index: pkgsrc/time/ocaml-mtime/PLIST
diff -u /dev/null pkgsrc/time/ocaml-mtime/PLIST:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/PLIST Mon Jul 1 16:06:55 2019
@@ -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
Index: pkgsrc/time/ocaml-mtime/buildlink3.mk
diff -u /dev/null pkgsrc/time/ocaml-mtime/buildlink3.mk:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/buildlink3.mk Mon Jul 1 16:06:55 2019
@@ -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
Index: pkgsrc/time/ocaml-mtime/distinfo
diff -u /dev/null pkgsrc/time/ocaml-mtime/distinfo:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/distinfo Mon Jul 1 16:06:55 2019
@@ -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
Index: pkgsrc/time/ocaml-mtime/options.mk
diff -u /dev/null pkgsrc/time/ocaml-mtime/options.mk:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/options.mk Mon Jul 1 16:06:55 2019
@@ -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
Index: pkgsrc/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml
diff -u /dev/null pkgsrc/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml:1.1
--- /dev/null Mon Jul 1 16:06:55 2019
+++ pkgsrc/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml Mon Jul 1 16:06:55 2019
@@ -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