opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
build: make
remove: [["ocamlfind" "remove" "yojson"]]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind"
  "cppo"
  "easy-format"
  "biniou" {>= "1.0.6"}
]
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.1.8.tar.gz"
  checksum: "md5=e3c53004f74410c3835d851b02c1bf21"
}
