opam-version: "2.0"
maintainer: "Christophe.Troestler@umons.ac.be"
authors: [
  "Albert Cohen <Albert.Cohen@prism.uvsq.fr>"
  "Sam Steingold <sds@gnu.org>"
  "Christophe Troestler <Christophe.Troestler@umons.ac.be>"
  "Stefan Monnier <monnier@iro.umontreal.ca>"
]
homepage: "https://github.com/ocaml/tuareg"
bug-reports: "https://github.com/ocaml/tuareg/issues"
dev-repo: "git+https://github.com/ocaml/tuareg.git"
build: [
  [make "tuareg-site-file.el"]
  [make "elc"] {os != "macos"}
]
depends: ["ocaml" "conf-emacs"]
depopts: [
  "caml-mode"
  "merlin"
]
post-messages: "
If you have not yet done so, please add in ~/.emacs.d/init.el or
in ~/.emacs to following line:
    (load \"%{share}%/emacs/site-lisp/tuareg-site-file\")
You should consider installing \"merlin\" (completion, displaying types,...)
or \"caml-mode\" (displaying types).
" {success & !user-setup:installed}
patches: ["0001-Run-opam-sexp-rather-than-parse-its-shell-output.patch"]
synopsis: "OCaml mode for GNU Emacs and XEmacs."
description: """
Tuareg handles automatic indentation of OCaml and Camllight codes.
Key parts of the code are highlighted using Font-Lock.  Support to run
an interactive OCaml toplevel and debugger is provided."""
extra-files: [
  "0001-Run-opam-sexp-rather-than-parse-its-shell-output.patch"
  "md5=75a689033ce8d8cc9e0fe1d13631e743"
]
url {
  src:
    "https://github.com/ocaml/tuareg/releases/download/2.0.10/tuareg-2.0.10.tar.gz"
  checksum: "md5=4a2d2cccea44063c0eb4f8a9ddacebbd"
}
