summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2019-03-13 11:50:24 +0000
committerjaapb <jaapb@pkgsrc.org>2019-03-13 11:50:24 +0000
commitd0a92e287b3769603fea4b1f02657b7802d0aea2 (patch)
treea2def8fc193045846f531c9d92b9aa2961efa51f /time
parent8ba9e4e03527745ece31f5b0ae570b0be4dcad41 (diff)
downloadpkgsrc-d0a92e287b3769603fea4b1f02657b7802d0aea2.tar.gz
Added time/ocaml-time_now, to report the time in ns since the Unix epoch
Diffstat (limited to 'time')
-rw-r--r--time/ocaml-time_now/DESCR2
-rw-r--r--time/ocaml-time_now/Makefile22
-rw-r--r--time/ocaml-time_now/PLIST18
-rw-r--r--time/ocaml-time_now/buildlink3.mk13
-rw-r--r--time/ocaml-time_now/distinfo6
5 files changed, 61 insertions, 0 deletions
diff --git a/time/ocaml-time_now/DESCR b/time/ocaml-time_now/DESCR
new file mode 100644
index 00000000000..70a4385df97
--- /dev/null
+++ b/time/ocaml-time_now/DESCR
@@ -0,0 +1,2 @@
+Provides a single function to report the current time in nanoseconds
+since the start of the Unix epoch.
diff --git a/time/ocaml-time_now/Makefile b/time/ocaml-time_now/Makefile
new file mode 100644
index 00000000000..ec1026b0d7b
--- /dev/null
+++ b/time/ocaml-time_now/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2019/03/13 11:50:24 jaapb Exp $
+
+GITHUB_PROJECT= time_now
+GITHUB_TAG= v${PKGVERSION_NOREV}
+DISTNAME= ${GITHUB_PROJECT}-0.12.0
+PKGNAME= ocaml-${DISTNAME}
+CATEGORIES= time
+MASTER_SITES= ${MASTER_SITE_GITHUB:=janestreet/}
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= https://github.com/janestreet/time_now/
+COMMENT= Library that reports the current time
+LICENSE= mit
+
+OCAML_USE_DUNE= yes
+.include "../../mk/ocaml.mk"
+.include "../../devel/ocaml-base/buildlink3.mk"
+.include "../../devel/ocaml-jane-street-headers/buildlink3.mk"
+.include "../../devel/ocaml-jst-config/buildlink3.mk"
+.include "../../devel/ocaml-ppx_base/buildlink3.mk"
+.include "../../devel/ocaml-ppx_optcomp/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/ocaml-time_now/PLIST b/time/ocaml-time_now/PLIST
new file mode 100644
index 00000000000..23484bfaa76
--- /dev/null
+++ b/time/ocaml-time_now/PLIST
@@ -0,0 +1,18 @@
+@comment $NetBSD: PLIST,v 1.1 2019/03/13 11:50:24 jaapb Exp $
+${OCAML_SITELIB}/stublibs/dlltime_now_stubs.so
+${OCAML_SITELIB}/time_now/META
+${OCAML_SITELIB}/time_now/dune-package
+${OCAML_SITELIB}/time_now/libtime_now_stubs.a
+${OCAML_SITELIB}/time_now/opam
+${OCAML_SITELIB}/time_now/runtime.js
+${PLIST.ocaml-opt}${OCAML_SITELIB}/time_now/time_now.a
+${OCAML_SITELIB}/time_now/time_now.cma
+${OCAML_SITELIB}/time_now/time_now.cmi
+${OCAML_SITELIB}/time_now/time_now.cmt
+${OCAML_SITELIB}/time_now/time_now.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/time_now/time_now.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/time_now/time_now.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/time_now/time_now.cmxs
+${OCAML_SITELIB}/time_now/time_now.ml
+${OCAML_SITELIB}/time_now/time_now.mli
+share/doc/time_now/LICENSE.md
diff --git a/time/ocaml-time_now/buildlink3.mk b/time/ocaml-time_now/buildlink3.mk
new file mode 100644
index 00000000000..6a1c822bc23
--- /dev/null
+++ b/time/ocaml-time_now/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/03/13 11:50:24 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-time_now
+
+.if !defined(OCAML_TIME_NOW_BUILDLINK3_MK)
+OCAML_TIME_NOW_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-time_now+= ocaml-time_now>=0.12.0
+BUILDLINK_PKGSRCDIR.ocaml-time_now?= ../../time/ocaml-time_now
+
+.endif # OCAML_TIME_NOW_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-time_now
diff --git a/time/ocaml-time_now/distinfo b/time/ocaml-time_now/distinfo
new file mode 100644
index 00000000000..d7e58f5fff2
--- /dev/null
+++ b/time/ocaml-time_now/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/03/13 11:50:24 jaapb Exp $
+
+SHA1 (time_now-0.12.0.tar.gz) = 31e2325992c1138c2912da3273ab8cc2911efcb5
+RMD160 (time_now-0.12.0.tar.gz) = 89367348f088122e6e5108d37cbc01443328bea4
+SHA512 (time_now-0.12.0.tar.gz) = 71523cf4a5b2b1a3944ce5e9e7d4efc1fa4bc6446d7bada046e83d478ed1049895952342defc91a7a63f51602f497caced8e4731440a47bb410196db050c4dcc
+Size (time_now-0.12.0.tar.gz) = 3674 bytes