(lang dune 2.8)
(name js_of_ocaml)
(version 3.11.0)

(generate_opam_files true)

(authors "Ocsigen team <dev@ocsigen.org>")
(maintainers "Ocsigen team <dev@ocsigen.org>")
(source (github ocsigen/js_of_ocaml))
(bug_reports "https://github.com/ocsigen/js_of_ocaml/issues")
(homepage "https://ocsigen.github.io/js_of_ocaml")
(documentation "https://ocsigen.github.io/js_of_ocaml")
(license "GPL-2.0-or-later AND LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception")

(package
 (name js_of_ocaml-compiler)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (and (>= 4.04) (< 4.14)))
  (num :with-test)
  (ppx_expect (and (>= v0.12.0) :with-test))
  (ppxlib (>= 0.15.0))
  (re :with-test)
  cmdliner
  menhir
  menhirLib
  menhirSdk
  yojson)
 (depopts
  ocamlfind)
 (conflicts
  (ocamlfind (< 1.5.1))
  (js_of_ocaml (< 3.0))
))

(package
 (name js_of_ocaml-lwt)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml (= :version))
  (js_of_ocaml-ppx (= :version))
  (lwt (>= 2.4.4))
  (num :with-test)
  (ppx_expect :with-test)
  (ppxlib (and (>= 0.22.0) :with-test))
  (re (and (>= 1.9.0) :with-test)))
 (depopts
  graphics
  lwt_log
))

(package
 (name js_of_ocaml-ocamlbuild)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  ocamlbuild
  (num :with-test)
  (ppx_expect :with-test)
  (ppxlib (and (>= 0.22.0) :with-test))
  (re (and (>= 1.9.0) :with-test))
))

(package
 (name js_of_ocaml-ppx_deriving_json)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml (= :version))
  (ppxlib (>= 0.15))
  (num :with-test)
  (ppx_expect :with-test)
  (re (and (>= 1.9.0) :with-test))
))

(package
 (name js_of_ocaml-ppx)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml (= :version))
  (ppxlib (>= 0.15.0))
  (num :with-test)
  (ppx_expect :with-test)
  (re (and (>= 1.9.0) :with-test))
))

(package
 (name js_of_ocaml-toplevel)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml (= :version))
  (js_of_ocaml-compiler (= :version))
  (js_of_ocaml-ppx (= :version))
  (ocamlfind (>= 1.5.1))
  (cohttp-lwt-unix :with-test)
  (graphics :with-test)
  (num :with-test)
  (ppx_expect :with-test)
  (ppxlib (and (>= 0.15) :with-test))
  (re (and (>= 1.9.0) :with-test))
))

(package
 (name js_of_ocaml-tyxml)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml (= :version))
  (js_of_ocaml-ppx (= :version))
  (react (>= 1.2.1))
  (reactiveData (>= 0.2))
  (tyxml (>= 4.3))
  (num :with-test)
  (ppx_expect :with-test)
  (ppxlib (and (>= 0.22.0) :with-test))
  (re (and (>= 1.9.0) :with-test))
))

(package
 (name js_of_ocaml)
 (synopsis "Compiler from OCaml bytecode to JavaScript")
 (description
  "Js_of_ocaml is a compiler from OCaml bytecode to JavaScript. It makes it possible to run pure OCaml programs in JavaScript environment like browsers and Node.js")
 (depends
  (ocaml (>= 4.04))
  (js_of_ocaml-compiler (= :version))
  (ppxlib (>= 0.15))
  uchar
  (num :with-test)
  (ppx_expect :with-test)
  (re (and (>= 1.9.0) :with-test))
))
