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"
doc: "https://github.com/ocaml/tuareg"
build: [
  [make "tuareg-site-file.el"]
  [make "elc"] {os != "macos"}
]
depends: ["ocaml" "conf-emacs"]
depopts: [
  "caml-mode" # {>= "4.05"}
  "merlin"
]
post-messages: [
  "If you have not yet done so, please add the following line to ~/.emacs.d/init.el or ~/.emacs:
    (load \"%{share}%/emacs/site-lisp/tuareg-site-file\")
" {success & !user-setup:installed}
  "You should consider installing \"merlin\" (completion, displaying types,...)
or \"caml-mode\" (displaying types).  See https://github.com/ocaml/tuareg
for customization tips."
]
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 REPL and debugger is provided."""
url {
  src:
    "https://github.com/ocaml/tuareg/releases/download/2.2.0/tuareg-2.2.0.tar.gz"
  checksum: "md5=b863d3a4a2127816cfe995f9f8e5ff41"
}
