opam-version: "2.0"
maintainer:   "dev@ocsigen.org"
authors:      "Ocsigen team"
bug-reports:  "https://github.com/ocsigen/js_of_ocaml/issues"
homepage:     "http://ocsigen.org/js_of_ocaml"
dev-repo: "git+https://github.com/ocsigen/js_of_ocaml.git"
build:   [make]
install: [make "install-lib" "BINDIR=%{bin}%"]
remove:  ["ocamlfind" "remove" "js_of_ocaml"]

depends: [
  "ocaml" {<= "4.01.0"}
  "ocamlfind"
  "lwt" {>= "2.4"}
  "menhir" {< "20200525"}
  "camlp4"
  "ocamlbuild"
]
depopts: ["deriving"]
conflicts: ["deriving" {< "0.6"}]
synopsis: "Compiler from OCaml bytecode to Javascript"
flags: light-uninstall
extra-files: ["js_of_ocaml.install" "md5=9693c4c6ec26305451a05aa9e6650406"]
url {
  src: "http://ocsigen.org/download/js_of_ocaml-2.00.tar.gz"
  checksum: "md5=1bd2f9733e357f21bbdd0f537c3c0acc"
}
