diff options
author | jaapb <jaapb@pkgsrc.org> | 2019-07-01 16:06:55 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2019-07-01 16:06:55 +0000 |
commit | a480633af4aac75aec21f673b3343cc062fae9c5 (patch) | |
tree | 6e503a894856f4d6930370a423efbbfdb81f2f76 /time | |
parent | 83c40bf45b8477df4c0376999f4bae078883bb6d (diff) | |
download | pkgsrc-a480633af4aac75aec21f673b3343cc062fae9c5.tar.gz |
Added time/ocaml-mtime, a monotonic wall clock library for OCaml.
This is needed as a dependency for some options of ocaml-git.
Diffstat (limited to 'time')
-rw-r--r-- | time/ocaml-mtime/DESCR | 3 | ||||
-rw-r--r-- | time/ocaml-mtime/Makefile | 20 | ||||
-rw-r--r-- | time/ocaml-mtime/PLIST | 39 | ||||
-rw-r--r-- | time/ocaml-mtime/buildlink3.mk | 13 | ||||
-rw-r--r-- | time/ocaml-mtime/distinfo | 7 | ||||
-rw-r--r-- | time/ocaml-mtime/options.mk | 22 | ||||
-rw-r--r-- | time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml | 14 |
7 files changed, 118 insertions, 0 deletions
diff --git a/time/ocaml-mtime/DESCR b/time/ocaml-mtime/DESCR new file mode 100644 index 00000000000..9c797fe15ec --- /dev/null +++ b/time/ocaml-mtime/DESCR @@ -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 --git a/time/ocaml-mtime/Makefile b/time/ocaml-mtime/Makefile new file mode 100644 index 00000000000..9a0ba3dfe0a --- /dev/null +++ b/time/ocaml-mtime/Makefile @@ -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 +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 --git a/time/ocaml-mtime/PLIST b/time/ocaml-mtime/PLIST new file mode 100644 index 00000000000..1ab8fff4f3e --- /dev/null +++ b/time/ocaml-mtime/PLIST @@ -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 --git a/time/ocaml-mtime/buildlink3.mk b/time/ocaml-mtime/buildlink3.mk new file mode 100644 index 00000000000..c5b0256faa8 --- /dev/null +++ b/time/ocaml-mtime/buildlink3.mk @@ -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 --git a/time/ocaml-mtime/distinfo b/time/ocaml-mtime/distinfo new file mode 100644 index 00000000000..fc4f3735c27 --- /dev/null +++ b/time/ocaml-mtime/distinfo @@ -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 --git a/time/ocaml-mtime/options.mk b/time/ocaml-mtime/options.mk new file mode 100644 index 00000000000..9155b4fc04c --- /dev/null +++ b/time/ocaml-mtime/options.mk @@ -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 --git a/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml b/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml new file mode 100644 index 00000000000..5ee4ae3f47d --- /dev/null +++ b/time/ocaml-mtime/patches/patch-src-jsoo_mtime__clock.ml @@ -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 *) |