opam-version: "2.0"
maintainer: "louis.gesbert@ocamlpro.com"
authors: ["Louis Gesbert" "Gabriel Radanne"]
homepage: "http://www.typerex.org/ocp-index.html"
bug-reports: "https://github.com/OCamlPro/ocp-index/issues"
license: "LGPL-2.0-or-later"
tags: ["org:ocamlpro" "org:typerex"]
dev-repo: "git+https://github.com/OCamlPro/ocp-index.git"
build: [
  ["./configure" "--prefix" prefix]
  [make]
]
depends: [
  "ocaml" {>= "4.00.0" & < "4.03"}
  "ocp-build" {build & >= "1.99.6-beta"}
  "ocp-indent" {>= "1.4.2"}
  "re"
  "cmdliner"
]
depopts: "lambda-term"
conflicts: [
  "lambda-term" {< "1.7" | >= "2.0"}
]
messages: [
  "For ocp-browser, also install lambda-term" {!lambda-term:installed}
]
post-messages: [
  "
This package requires additional configuration for use in editors. Either install package 'user-setup', or manually:

* for Emacs, add these lines to ~/.emacs:
  (add-to-list 'load-path \"%{prefix}%/share/emacs/site-lisp\")
  (require 'ocp-index)

* for Vim, add the following line to ~/.vimrc:
  set rtp+=%{share}%/ocp-index/vim
  "
    {success & !user-setup:installed}
]
patches: "ocaml.4.02.patch" {ocaml:version >= "4.02"}
synopsis:
  "Lightweight completion and documentation browsing for OCaml libraries"
description: """
This package includes
* The `ocp-index` library and command-line tool
* `ocp-browser`, an interface browser for installed and in-project modules. This requires lambda-term installed
* `ocp-grep`, a tool that finds uses of a given (qualified) identifier in a source tree
* bindings for emacs and vim (sublime text also [available](https://github.com/whitequark/sublime-ocp-index/))

To automatically configure your editors, install this with package `user-setup`."""
extra-files: [
  ["ocaml.4.03.patch" "md5=eeaa9a4a3b2d405aa94843bc805d6ee3"]
  ["ocaml.4.02.patch" "md5=3534c97745eaf08e67aa815812d245db"]
]
url {
  src: "https://github.com/OCamlPro/ocp-index/archive/1.1.2.tar.gz"
  checksum: "md5=c9089c112a6dca068df13869708ae704"
}
