opam-version: "2.0"
maintainer: "Max Mouratov <mmouratov@gmail.com>"
authors: "Holger Arnold <holger@harnold.org>"
homepage: "https://github.com/cakeplus/mparser/"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
dev-repo: "git://https://github.com/cakeplus/mparser"
bug-reports: "https://github.com/cakeplus/mparser/issues"
depends: [
  "ocaml"
  "base-bytes"
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
depopts: [
  "re"
  "pcre"
]
build: [
  [
    "ocaml"
    "setup.ml"
    "-configure"
    "--prefix"
    prefix
    "--%{re:enable}%-re"
    "--%{pcre:enable}%-pcre"
  ]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [
  ["ocaml" "setup.ml" "-install"]
]
remove: [
  ["ocamlfind" "remove" "mparser"]
]
synopsis: "A simple monadic parser combinator library"
description: """
This library implements a rather complete and efficient monadic
parser combinator library similar to the Parsec library for Haskell by Daan
Leijen and the FParsec library for FSharp by Stephan Tolksdorf."""
flags: light-uninstall
url {
  src: "https://github.com/cakeplus/mparser/archive/1.2.2.tar.gz"
  checksum: "md5=80845a537bb4be0bbe41ffad8a2f09f3"
}
