forked from OCamlPro/ocp-indent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ocp-indent.opam
50 lines (47 loc) · 1.59 KB
/
ocp-indent.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
opam-version: "2.0"
maintainer: "[email protected]"
synopsis: "A simple tool to indent OCaml programs"
description: """
Ocp-indent is based on an approximate, tolerant OCaml parser and a simple stack
machine ; this is much faster and more reliable than using regexps. Presets and
configuration options available, with the possibility to set them project-wide.
Supports most common syntax extensions, and extensible for others.
Includes:
- An indentor program, callable from the command-line or from within editors
- Bindings for popular editors
- A library that can be directly used by editor writers, or just for
fault-tolerant/approximate parsing.
"""
authors: [
"Louis Gesbert <[email protected]>"
"Thomas Gazagnaire <[email protected]>"
"Jun Furuse"
]
homepage: "http://www.typerex.org/ocp-indent.html"
bug-reports: "https://github.com/OCamlPro/ocp-indent/issues"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
tags: ["org:ocamlpro" "org:typerex"]
dev-repo: "git+https://github.com/OCamlPro/ocp-indent.git"
build: [
["dune" "build" "-p" name "-j" jobs]
]
run-test: [
["dune" "runtest" "-p" name "-j" jobs]
]
depends: [
"ocaml"
"dune" {>= "1.0"}
"cmdliner" {>= "1.0.0"}
"ocamlfind"
"base-bytes"
]
post-messages: [
"This package requires additional configuration for use in editors. Install package 'user-setup', or manually:
* for Emacs, add these lines to ~/.emacs:
(add-to-list 'load-path \"%{share}%/emacs/site-lisp\")
(require 'ocp-indent)
* for Vim, add this line to ~/.vimrc:
set rtp^=\"%{share}%/ocp-indent/vim\"
"
{success & !user-setup:installed}
]