Date: Sun, 28 Jun 2026 22:09:27 +0000 From: Muhammad Moinur Rahman <bofh@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Benjamin Jacobs <freebsd@dev.thsi.be> Subject: git: ecf371861799 - main - devel/ocaml-duration: New port Message-ID: <6a419b97.39c82.33fb6922@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=ecf37186179995607f52ba7963be2a3fe93388ab commit ecf37186179995607f52ba7963be2a3fe93388ab Author: Benjamin Jacobs <freebsd@dev.thsi.be> AuthorDate: 2026-06-28 20:16:13 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2026-06-28 22:08:53 +0000 devel/ocaml-duration: New port Library to convert between various time units in OCaml. The underlying representation uses nanoseconds on a 64 bits unsigned integer, for a range of about 584 years. WWW: https://github.com/hannesm/duration --- devel/Makefile | 1 + devel/ocaml-duration/Makefile | 31 +++++++++++++++++++++++++++++++ devel/ocaml-duration/distinfo | 3 +++ devel/ocaml-duration/pkg-descr | 3 +++ devel/ocaml-duration/pkg-plist | 13 +++++++++++++ 5 files changed, 51 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 7f28708f38ca..fd9cedd24cf7 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1791,6 +1791,7 @@ SUBDIR += ocaml-dolmen SUBDIR += ocaml-domain-name SUBDIR += ocaml-dune + SUBDIR += ocaml-duration SUBDIR += ocaml-eqaf SUBDIR += ocaml-extlib SUBDIR += ocaml-findlib diff --git a/devel/ocaml-duration/Makefile b/devel/ocaml-duration/Makefile new file mode 100644 index 000000000000..fda2b2ef9e12 --- /dev/null +++ b/devel/ocaml-duration/Makefile @@ -0,0 +1,31 @@ +PORTNAME= duration +DISTVERSION= 0.2.1 +CATEGORIES= devel +MASTER_SITES= https://github.com/hannesm/${PORTNAME}/releases/download/v${DISTVERSION}/ +PKGNAMEPREFIX= ocaml- + +MAINTAINER= freebsd@dev.thsi.be +COMMENT= OCaml library for converting time units +WWW= https://github.com/hannesm/duration + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USES= ocaml:dune tar:tbz + +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} + +PORTDOCS= CHANGES.md LICENSE.md README.md + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} \ + -e "s/(version v.*)/(version ${DISTVERSION})/" \ + ${WRKSRC}/dune-project + +post-install: + ${STRIP_CMD} \ + ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/duration/duration.cmxs + +.include <bsd.port.mk> diff --git a/devel/ocaml-duration/distinfo b/devel/ocaml-duration/distinfo new file mode 100644 index 000000000000..0b2fda7baf24 --- /dev/null +++ b/devel/ocaml-duration/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1752072436 +SHA256 (duration-0.2.1.tbz) = c738c1f38cfb99820c121cd3ddf819de4b2228f0d50eacbd1cc3ce99e7c71e2b +SIZE (duration-0.2.1.tbz) = 4699 diff --git a/devel/ocaml-duration/pkg-descr b/devel/ocaml-duration/pkg-descr new file mode 100644 index 000000000000..72b118341d5d --- /dev/null +++ b/devel/ocaml-duration/pkg-descr @@ -0,0 +1,3 @@ +Library to convert between various time units in OCaml. The underlying +representation uses nanoseconds on a 64 bits unsigned integer, for a +range of about 584 years. diff --git a/devel/ocaml-duration/pkg-plist b/devel/ocaml-duration/pkg-plist new file mode 100644 index 000000000000..ceff83babd28 --- /dev/null +++ b/devel/ocaml-duration/pkg-plist @@ -0,0 +1,13 @@ +%%OCAML_SITELIBDIR%%/duration/META +%%OCAML_SITELIBDIR%%/duration/dune-package +%%OCAML_SITELIBDIR%%/duration/duration.a +%%OCAML_SITELIBDIR%%/duration/duration.cma +%%OCAML_SITELIBDIR%%/duration/duration.cmi +%%OCAML_SITELIBDIR%%/duration/duration.cmt +%%OCAML_SITELIBDIR%%/duration/duration.cmti +%%OCAML_SITELIBDIR%%/duration/duration.cmx +%%OCAML_SITELIBDIR%%/duration/duration.cmxa +%%OCAML_SITELIBDIR%%/duration/duration.cmxs +%%OCAML_SITELIBDIR%%/duration/duration.ml +%%OCAML_SITELIBDIR%%/duration/duration.mli +%%OCAML_SITELIBDIR%%/duration/opamhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a419b97.39c82.33fb6922>
