svn commit: r393604 - in head/converters: . ocaml-jsonm

Veniamin Gvozdikov vg at FreeBSD.org
Wed Aug 5 18:52:27 UTC 2015


Author: vg
Date: Wed Aug  5 18:52:25 2015
New Revision: 393604
URL: https://svnweb.freebsd.org/changeset/ports/393604

Log:
  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

Added:
  head/converters/ocaml-jsonm/
  head/converters/ocaml-jsonm/Makefile   (contents, props changed)
  head/converters/ocaml-jsonm/distinfo   (contents, props changed)
  head/converters/ocaml-jsonm/pkg-descr   (contents, props changed)
Modified:
  head/converters/Makefile

Modified: head/converters/Makefile
==============================================================================
--- head/converters/Makefile	Wed Aug  5 18:44:07 2015	(r393603)
+++ head/converters/Makefile	Wed Aug  5 18:52:25 2015	(r393604)
@@ -50,6 +50,7 @@
     SUBDIR += mpack
     SUBDIR += nomyso
     SUBDIR += o3read
+    SUBDIR += ocaml-jsonm
     SUBDIR += osm2mp
     SUBDIR += osm2pgsql
     SUBDIR += p5-Boulder

Added: head/converters/ocaml-jsonm/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/ocaml-jsonm/Makefile	Wed Aug  5 18:52:25 2015	(r393604)
@@ -0,0 +1,35 @@
+# Created by: Veniamin Gvozdikov <vg at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	jsonm
+PORTVERSION=	0.9.1
+CATEGORIES=	converters
+MASTER_SITES=	http://erratique.ch/software/jsonm/releases/
+PKGNAMEPREFIX=	ocaml-
+
+MAINTAINER=	vg at 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>

Added: head/converters/ocaml-jsonm/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/ocaml-jsonm/distinfo	Wed Aug  5 18:52:25 2015	(r393604)
@@ -0,0 +1,2 @@
+SHA256 (jsonm-0.9.1.tbz) = 3fd4dca045d82332da847e65e981d8b504883571d299a3f7e71447d46bc65f73
+SIZE (jsonm-0.9.1.tbz) = 64843

Added: head/converters/ocaml-jsonm/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/converters/ocaml-jsonm/pkg-descr	Wed Aug  5 18:52:25 2015	(r393604)
@@ -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


More information about the svn-ports-all mailing list