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