git: 54915f14067f - main - converters/ocaml-hex: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jun 2026 22:09:22 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=54915f14067fd5aa6c4421caf08734ee770cbf58
commit 54915f14067fd5aa6c4421caf08734ee770cbf58
Author: Benjamin Jacobs <freebsd@dev.thsi.be>
AuthorDate: 2026-06-28 18:27:43 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-06-28 22:08:52 +0000
converters/ocaml-hex: New port
A library for decoding and encoding base64 (RFC4648) strings in
OCaml. In addition to the default alphabet and an URI-safe alphabet
provided by this library, it is possible to use a custom alphabet.
WWW: https://github.com/mirage/ocaml-hex
---
converters/Makefile | 1 +
converters/ocaml-hex/Makefile | 35 +++++++++++++++++++++++++++++++++++
converters/ocaml-hex/distinfo | 3 +++
converters/ocaml-hex/pkg-descr | 3 +++
converters/ocaml-hex/pkg-plist | 13 +++++++++++++
5 files changed, 55 insertions(+)
diff --git a/converters/Makefile b/converters/Makefile
index b2314213ffbf..67f72414690a 100644
--- a/converters/Makefile
+++ b/converters/Makefile
@@ -56,6 +56,7 @@
SUBDIR += nomyso
SUBDIR += o3read
SUBDIR += ocaml-base64
+ SUBDIR += ocaml-hex
SUBDIR += ocaml-jsonm
SUBDIR += osm2mp
SUBDIR += osm2pgrouting
diff --git a/converters/ocaml-hex/Makefile b/converters/ocaml-hex/Makefile
new file mode 100644
index 000000000000..573749d139eb
--- /dev/null
+++ b/converters/ocaml-hex/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= hex
+DISTVERSION= 1.5.0
+CATEGORIES= converters
+MASTER_SITES= https://github.com/mirage/ocaml-${PORTNAME}/releases/download/v${DISTVERSION}/
+PKGNAMEPREFIX= ocaml-
+
+MAINTAINER= freebsd@dev.thsi.be
+COMMENT= Hexadecimal encoding library for OCaml
+WWW= https://github.com/mirage/ocaml-hex
+
+LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= ${SA_DIR}/cstruct/META:devel/ocaml-cstruct
+RUN_DEPENDS= ${SA_DIR}/cstruct/META:devel/ocaml-cstruct
+
+USES= ocaml:dune tar:tbz
+
+DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
+PORTDOCS= CHANGES.md LICENSE.md README.md
+
+OPTIONS_DEFINE= DOCS
+
+SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
+
+post-patch:
+ @${REINPLACE_CMD} \
+ -e "s/(version v.*)/(version ${DISTVERSION})/" \
+ ${WRKSRC}/dune-project
+
+post-install:
+ ${STRIP_CMD} \
+ ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/hex/hex.cmxs
+
+.include <bsd.port.mk>
diff --git a/converters/ocaml-hex/distinfo b/converters/ocaml-hex/distinfo
new file mode 100644
index 000000000000..73149520a7aa
--- /dev/null
+++ b/converters/ocaml-hex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1752074384
+SHA256 (hex-1.5.0.tbz) = 2e67eeca1b03049307a30831b5cd694bcb2d3e7f2a6b4fb597fbdb647351b4dc
+SIZE (hex-1.5.0.tbz) = 6915
diff --git a/converters/ocaml-hex/pkg-descr b/converters/ocaml-hex/pkg-descr
new file mode 100644
index 000000000000..2d7eb3fec1f5
--- /dev/null
+++ b/converters/ocaml-hex/pkg-descr
@@ -0,0 +1,3 @@
+A library for decoding and encoding base64 (RFC4648) strings in
+OCaml. In addition to the default alphabet and an URI-safe alphabet
+provided by this library, it is possible to use a custom alphabet.
diff --git a/converters/ocaml-hex/pkg-plist b/converters/ocaml-hex/pkg-plist
new file mode 100644
index 000000000000..93d394476485
--- /dev/null
+++ b/converters/ocaml-hex/pkg-plist
@@ -0,0 +1,13 @@
+%%OCAML_SITELIBDIR%%/hex/META
+%%OCAML_SITELIBDIR%%/hex/dune-package
+%%OCAML_SITELIBDIR%%/hex/hex.a
+%%OCAML_SITELIBDIR%%/hex/hex.cma
+%%OCAML_SITELIBDIR%%/hex/hex.cmi
+%%OCAML_SITELIBDIR%%/hex/hex.cmt
+%%OCAML_SITELIBDIR%%/hex/hex.cmti
+%%OCAML_SITELIBDIR%%/hex/hex.cmx
+%%OCAML_SITELIBDIR%%/hex/hex.cmxa
+%%OCAML_SITELIBDIR%%/hex/hex.cmxs
+%%OCAML_SITELIBDIR%%/hex/hex.ml
+%%OCAML_SITELIBDIR%%/hex/hex.mli
+%%OCAML_SITELIBDIR%%/hex/opam