opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
authors: ["Emmanuel Onzo"]
homepage: "http://dypgen.free.fr/"
license: "CeCILL-B"
build: make
remove: [
  ["ocamlfind" "remove" "dypgen"]
  ["ocamlfind" "remove" "dyp"]
]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind"
]
patches: ["install-bsd-compatible.patch"]
install: [
  make
  "install"
  "DYPGENLIBDIR=%{lib}%"
  "BINDIR=%{bin}%"
  "MANDIR=%{man}%/man1"
]
synopsis: "Self-extensible parsers and lexers for OCaml"
description: """
dypgen is a GLR parser generator for OCaml, it is able to
generate self-extensible parsers (also called adaptive parsers) as
well as extensible lexers for the parsers it produces."""
flags: light-uninstall
extra-files: [
  ["install-bsd-compatible.patch" "md5=f4885881bb9e16bae3f9e88ebb54c582"]
  ["dypgen.install" "md5=3af2bc7343588caf1a6de8af49a3b1b5"]
]
url {
  src: "http://dypgen.free.fr/dypgen-20120619-1.tar.bz2"
  checksum: "md5=f12c4756b6cfd74247aae2c876c1e591"
}
