summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2014-11-06 11:37:33 +0000
committerjaapb <jaapb@pkgsrc.org>2014-11-06 11:37:33 +0000
commitc61a975e3fe627e093b94ebc5b91d086f4101880 (patch)
tree140ba3c143ee0aa5f795fcab4217658c24563eef /textproc
parent191598a930005919559b521acafa1d87ff0cdd82 (diff)
downloadpkgsrc-c61a975e3fe627e093b94ebc5b91d086f4101880.tar.gz
Added textproc/ocaml-jsonm, a pure OCaml JSON library.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ocaml-jsonm/DESCR3
-rw-r--r--textproc/ocaml-jsonm/Makefile18
-rw-r--r--textproc/ocaml-jsonm/PLIST11
-rw-r--r--textproc/ocaml-jsonm/buildlink3.mk14
-rw-r--r--textproc/ocaml-jsonm/distinfo5
5 files changed, 51 insertions, 0 deletions
diff --git a/textproc/ocaml-jsonm/DESCR b/textproc/ocaml-jsonm/DESCR
new file mode 100644
index 00000000000..28d08af5c06
--- /dev/null
+++ b/textproc/ocaml-jsonm/DESCR
@@ -0,0 +1,3 @@
+Jsonm is a 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.
diff --git a/textproc/ocaml-jsonm/Makefile b/textproc/ocaml-jsonm/Makefile
new file mode 100644
index 00000000000..fa70fe4f36c
--- /dev/null
+++ b/textproc/ocaml-jsonm/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2014/11/06 11:37:33 jaapb Exp $
+
+DISTNAME= jsonm-0.9.1
+CATEGORIES= textproc
+MASTER_SITES= http://erratique.ch/software/jsonm/releases/
+EXTRACT_SUFX= .tbz
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://erratique.ch/software/jsonm/
+COMMENT= OCaml streaming codec for JSON
+LICENSE= modified-bsd
+
+OCAML_USE_FINDLIB= yes
+OCAML_USE_OASIS= yes
+
+.include "../../mk/ocaml.mk"
+.include "../../textproc/ocaml-uutf/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-jsonm/PLIST b/textproc/ocaml-jsonm/PLIST
new file mode 100644
index 00000000000..793d4ec69cd
--- /dev/null
+++ b/textproc/ocaml-jsonm/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2014/11/06 11:37:33 jaapb Exp $
+bin/jsontrip
+bin/ocamltweets
+${OCAML_SITELIB}/jsonm/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/jsonm/jsonm.a
+${OCAML_SITELIB}/jsonm/jsonm.cma
+${OCAML_SITELIB}/jsonm/jsonm.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/jsonm/jsonm.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/jsonm/jsonm.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/jsonm/jsonm.cmxs
+${OCAML_SITELIB}/jsonm/jsonm.mli
diff --git a/textproc/ocaml-jsonm/buildlink3.mk b/textproc/ocaml-jsonm/buildlink3.mk
new file mode 100644
index 00000000000..34f32e6b6c9
--- /dev/null
+++ b/textproc/ocaml-jsonm/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/11/06 11:37:33 jaapb Exp $
+
+BUILDLINK_TREE+= ocaml-jsonm
+
+.if !defined(OCAML_JSONM_BUILDLINK3_MK)
+OCAML_JSONM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.ocaml-jsonm+= ocaml-jsonm>=0.9.1
+BUILDLINK_PKGSRCDIR.ocaml-jsonm?= ../../textproc/ocaml-jsonm
+
+.include "../../textproc/ocaml-uutf/buildlink3.mk"
+.endif # OCAML_JSONM_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -ocaml-jsonm
diff --git a/textproc/ocaml-jsonm/distinfo b/textproc/ocaml-jsonm/distinfo
new file mode 100644
index 00000000000..2bcf2c6b4fa
--- /dev/null
+++ b/textproc/ocaml-jsonm/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/11/06 11:37:33 jaapb Exp $
+
+SHA1 (jsonm-0.9.1.tbz) = 733fe089fb91ac79ac885e9c80d5554aca3e7805
+RMD160 (jsonm-0.9.1.tbz) = b28c2f168b8068c9d867a9a68b0a0289380f1288
+Size (jsonm-0.9.1.tbz) = 64843 bytes