opam-version: "2.0"
maintainer: "rudi.grinberg@gmail.com"
authors: ["Rudi Grinberg"]
license: "MIT"

homepage: "https://github.com/rgrinberg/ocaml-mustache"
bug-reports: "https://github.com/rgrinberg/ocaml-mustache/issues"
dev-repo: "git+https://github.com/rgrinberg/ocaml-mustache.git"
doc: "http://mustache.github.io/mustache.5.html"

build: [
  ["oasis" "setup"]
  ["ocaml" "setup.ml" "-configure" "--disable-cli"]
  ["ocaml" "setup.ml" "-build"]
  ["oasis" "setup"] {with-test}
  ["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]

remove: [
  ["ocamlfind" "remove" "mustache"]
]

depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "oasis" {build & >= "0.4.0"}
  "ocamlbuild" {build}
  "ounit" {with-test}
]
synopsis: "Mustache logic-less templates in OCaml"
description:
  "Read and write mustache templates and render them by providing a json object"
flags: light-uninstall
url {
  src: "https://github.com/rgrinberg/ocaml-mustache/archive/v2.1.0.tar.gz"
  checksum: "md5=d7545f4b0b3088afd1c62a77225b4f61"
}
