New port: converters/ocaml-jsonm

Jsonm is an OCaml non-blocking streaming codec to decode and encode the
JSON data format. It can process JSON text without blocking on IO and
without a complete in-memory representation of the data.

The uncut codec also processes whitespace and (non-standard) JSON with
JavaScript comments.

WWW: http://erratique.ch/software/jsonm
This commit is contained in:
Veniamin Gvozdikov 2015-08-05 18:52:25 +00:00
parent 014ad77928
commit 8c82ff676c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393604
4 changed files with 46 additions and 0 deletions

View file

@ -50,6 +50,7 @@
SUBDIR += mpack
SUBDIR += nomyso
SUBDIR += o3read
SUBDIR += ocaml-jsonm
SUBDIR += osm2mp
SUBDIR += osm2pgsql
SUBDIR += p5-Boulder

View file

@ -0,0 +1,35 @@
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= jsonm
PORTVERSION= 0.9.1
CATEGORIES= converters
MASTER_SITES= http://erratique.ch/software/jsonm/releases/
PKGNAMEPREFIX= ocaml-
MAINTAINER= vg@FreeBSD.org
COMMENT= Non-blocking streaming JSON codec for OCaml
LICENSE= BSD3CLAUSE
BUILD_DEPENDS= ${SA_DIR}/uutf/uutf.a:${PORTSDIR}/devel/ocaml-uutf
RUN_DEPENDS= ${SA_DIR}/uutf/uutf.a:${PORTSDIR}/devel/ocaml-uutf
USES= tar:tbz
USE_OCAML= yes
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
USE_OCAML_FINDLIB= yes
USE_OCAMLFIND_PLIST= yes
USE_OCAML_LDCONFIG= yes
do-build:
cd ${WRKSRC} && ocamlbuild src/jsonm.cmxs src/jsonm.cma src/jsonm.a
do-install:
${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}/jsonm
cd ${WRKSRC} && ocamlfind install -destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib jsonm src/META _build/src/jsonm.a _build/src/jsonm.cma _build/src/jsonm.cmi _build/src/jsonm.cmx _build/src/jsonm.cmxa _build/src/jsonm.cmxs _build/src/jsonm.mli
${INSTALL_LIB} ${WRKSRC}/_build/src/jsonm.cmxs \
${STAGEDIR}${OCAMLFIND_DESTDIR}/jsonm
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (jsonm-0.9.1.tbz) = 3fd4dca045d82332da847e65e981d8b504883571d299a3f7e71447d46bc65f73
SIZE (jsonm-0.9.1.tbz) = 64843

View file

@ -0,0 +1,8 @@
Jsonm is an OCaml non-blocking streaming codec to decode and encode the
JSON data format. It can process JSON text without blocking on IO and
without a complete in-memory representation of the data.
The uncut codec also processes whitespace and (non-standard) JSON with
JavaScript comments.
WWW: http://erratique.ch/software/jsonm