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>"
]
license: "GPL-2.0-or-later"
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.9"}
  "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"
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."""
