opam-version: "2.0"
maintainer: "mfp@acm.org"
homepage: "https://github.com/mfp/ocaml-leveldb"
license: "LGPL+static"
doc: ["https://github.com/mfp/ocaml-leveldb/blob/master/README.md"]
dev-repo: "git://github.com/mfp/ocaml-leveldb"
bug-reports: "https://github.com/mfp/ocaml-leveldb/issues"

build: [
  ["omake" "-j9"]
  ["omake" "test"] {with-test & ounit:installed}
]
install: [["omake" "install" "prefix=%{prefix}%"]]
remove: [["ocamlfind" "remove" "leveldb"]]

depends: [
  "ocaml" {< "4.06"}
  "ocamlfind" {build}
  "omake" {build}
  "ounit" {build}
  "conf-leveldb"
  "conf-snappy"
]
synopsis: "OCaml bindings for Google's LevelDB library."
description: """
These bindings expose nearly the full LevelDB C++ API, including:

* iterators
* snapshots
* batch updates
* support for custom comparators

Blocking functions release the OCaml runtime system, allowing to:

* run them in parallel with other OCaml code
* perform multiple LevelDB operations in parallel"""
authors: "mfp@acm.org"
flags: light-uninstall
url {
  src: "https://github.com/mfp/ocaml-leveldb/archive/1.1.1.tar.gz"
  checksum: "md5=7495ef120693866347e14c464d4f8ab4"
}
