opam-version: "2.0"
maintainer: "opam-devel@lists.ocaml.org"
authors: ["Daniel Bünzli <daniel.buenzli at erratique.ch>"]
homepage: "http://erratique.ch/software/jsonm"
license: "BSD-3-Clause"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
]
remove: [["ocamlfind" "remove" "jsonm"]]
depends: [
  "ocaml" {>= "3.12.0"}
  "ocamlfind"
  "uutf" {<= "0.9.4"}
  "ocamlbuild" {build}
]
install: ["ocaml" "setup.ml" "-install"]
synopsis: "Non-blocking streaming JSON codec for OCaml"
description: """
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.

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

Jsonm is made of a single module and depends on [Uutf][1]. It is
distributed under the BSD3 license.

[1]: http://erratique.ch/software/uutf"""
flags: light-uninstall
extra-files: ["jsonm.install" "md5=3fdbc9f9d50d36206e0da75346c2d59c"]
url {
  src: "http://erratique.ch/software/jsonm/releases/jsonm-0.9.1.tbz"
  checksum: "md5=631a5dabdada83236c83056f60e42685"
}
