|
| 1 | +opam-version: "2.0" |
| 2 | +synopsis: "Auto-formatter for OCaml code" |
| 3 | +description: """ |
| 4 | +**ocamlformat** is a code formatter for OCaml. It comes with opinionated default settings but is also fully customizable to suit your coding style. |
| 5 | + |
| 6 | +- **Profiles:** ocamlformat offers profiles we predefined formatting configurations. Profiles include `default`, `ocamlformat`, `janestreet`. |
| 7 | +- **Configurable:** Users can change the formatting profile and configure every option in their `.ocamlformat` configuration file. |
| 8 | +- **Format Comments:** ocamlformat can format comments, docstrings, and even code blocks in your comments. |
| 9 | +- **RPC:** ocamlformat provides an RPC server that can be used by other tools to easily format OCaml Code.""" |
| 10 | +maintainer: [ |
| 11 | + "Guillaume Petiot < [email protected]>" |
| 12 | + "Jules Aguillon < [email protected]>" |
| 13 | + "Emile Trotignon < [email protected]>" |
| 14 | +] |
| 15 | +authors: [ |
| 16 | + "Josh Berdine < [email protected]>" |
| 17 | + "Hugo Heuzard < [email protected]>" |
| 18 | + "Etienne Millon < [email protected]>" |
| 19 | + "Guillaume Petiot < [email protected]>" |
| 20 | + "Jules Aguillon < [email protected]>" |
| 21 | +] |
| 22 | +homepage: "https://github.com/ocaml-ppx/ocamlformat" |
| 23 | +bug-reports: "https://github.com/ocaml-ppx/ocamlformat/issues" |
| 24 | +depends: [ |
| 25 | + "ocaml" {>= "4.08"} |
| 26 | + "cmdliner" {with-test = "false" & >= "1.1.0" | with-test & >= "1.2.0"} |
| 27 | + "csexp" {>= "1.4.0"} |
| 28 | + "dune" {>= "2.8"} |
| 29 | + "ocamlformat-lib" {= version} |
| 30 | + "ocamlformat-rpc-lib" {with-test & = version} |
| 31 | + "re" {>= "1.10.3"} |
| 32 | + "odoc" {with-doc} |
| 33 | +] |
| 34 | +build: [ |
| 35 | + ["dune" "subst"] {dev} |
| 36 | + [ |
| 37 | + "dune" |
| 38 | + "build" |
| 39 | + "-p" |
| 40 | + name |
| 41 | + "-j" |
| 42 | + jobs |
| 43 | + "@install" |
| 44 | + "@runtest" {with-test} |
| 45 | + "@doc" {with-doc} |
| 46 | + ] |
| 47 | +] |
| 48 | +dev-repo: "git+https://github.com/ocaml-ppx/ocamlformat.git" |
| 49 | +# OCamlFormat is distributed under the MIT license. Parts of the OCaml library are vendored for OCamlFormat and distributed under their original LGPL 2.1 license |
| 50 | +license: ["MIT" "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"] |
| 51 | +url { |
| 52 | + src: |
| 53 | + "https://github.com/ocaml-ppx/ocamlformat/releases/download/0.27.0/ocamlformat-0.27.0.tbz" |
| 54 | + checksum: [ |
| 55 | + "sha256=ddbf484c076d08f99400ee84b790ec231f5c8fcbd5d3324a6400d5388e846d15" |
| 56 | + "sha512=4d2a8965a7b7ad45f8f4e76c01cf38bfa68462b07dfa7bdb2db23bd3e3017b214e6780f036679fa8595dde4167a01d957e3af8837274320449014e306773f917" |
| 57 | + ] |
| 58 | +} |
| 59 | +x-commit-hash: "5bac2e7f71d9b0a06bd1908dda9b13da1649eee1" |
0 commit comments