opam-version: "2.0"
authors: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
build: [
  [
    "./configure"
    "--%{yojson:enable}%-yojson"
    "--%{bencode:enable}%-bencode"
    "--%{sexplib:enable}%-sexp"
  ]
  [make "build"]
  [make "test"] {with-test}
  [make "doc"] {with-doc}
]
install: [
    [make "install"]
]
remove: [
    ["ocamlfind" "remove" "cconv"]
]
depends: [
  "ocaml" {>= "4.00.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
depopts: [
  "bencode"
  "sexplib"
  "yojson"
]
conflicts: [
  "bencode" {>= "2.0"}
]
tags: ["conversion" "gadt" "serialization"]
homepage: "https://github.com/c-cube/cconv/"
doc: "http://cedeela.fr/~simon/software/cconv/"
dev-repo: "git+https://github.com/c-cube/cconv.git"
bug-reports: "https://github.com/c-cube/cconv/issues/"
synopsis: "Combinators for Type Conversion in OCaml."
description: """
CConv provides type-safe combinators for describing how to read/build OCaml
values of a given type. Those combinators can be used for serializing and
deserializing the values into several formats. The library ships with
conversion to Json (yojson), S-expressions (sexplib) and B-encode."""
flags: light-uninstall
url {
  src: "https://github.com/c-cube/cconv/archive/0.2.tar.gz"
  checksum: "md5=ac8384a679cec49f2dda98fe3f5ba59b"
}
