opam-version: "2.0"
maintainer: "martin@mjambon.com"
build: make
remove: [["ocamlfind" "remove" "yojson"]]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind"
  "cppo"
  "easy-format"
  "biniou" {>= "1.0.6"}
]
dev-repo: "git://github.com/mjambon/yojson"
install: [make "install" "BINDIR=%{bin}%"]
synopsis:
  "Yojson is an optimized parsing and printing library for the JSON format"
description: """
It addresses a few shortcomings of json-wheel including 2x speedup,
polymorphic variants and optional syntax for tuples and variants.

ydump is a pretty-printing command-line program provided with the
yojson package.

The program atdgen can be used to derive OCaml-JSON serializers and
deserializers from type definitions."""
flags: light-uninstall
extra-files: ["yojson.install" "md5=992a663b313888121778a1b7b18b622c"]
url {
  src: "https://github.com/mjambon/yojson/archive/v1.2.1.tar.gz"
  checksum: "md5=d8dff8a704e3eeb07aa0882970d5b9db"
}
