|
| 1 | + |
| 2 | +opam-version: "2.0" |
| 3 | +synopsis: "Preprocessor-pretty-printer of OCaml" |
| 4 | +description: """ |
| 5 | +Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools. |
| 6 | + |
| 7 | +As a preprocessor, it allows to: |
| 8 | + |
| 9 | +extend the syntax of OCaml, |
| 10 | +redefine the whole syntax of the language. |
| 11 | +As a pretty printer, it allows to: |
| 12 | + |
| 13 | +display OCaml programs in an elegant way, |
| 14 | +convert from one syntax to another, |
| 15 | +check the results of syntax extensions. |
| 16 | +Camlp5 also provides some parsing and pretty printing tools: |
| 17 | + |
| 18 | +extensible grammars |
| 19 | +extensible printers |
| 20 | +stream parsers and lexers |
| 21 | +pretty print module |
| 22 | +It works as a shell command and can also be used in the OCaml toplevel.""" |
| 23 | +maintainer: "https://github.com/ocaml/opam-repository/issues" |
| 24 | +authors: ["Daniel de Rauglaudre" "Chet Murthy"] |
| 25 | +license: "BSD-3-Clause" |
| 26 | +homepage: "https://camlp5.github.io" |
| 27 | +doc: "https://camlp5.github.io/doc/html" |
| 28 | +bug-reports: "https://github.com/camlp5/camlp5/issues" |
| 29 | +depends: [ |
| 30 | + "ocaml" {>= "4.10" & < "5.01.0"} |
| 31 | + "ocamlfind" |
| 32 | + "camlp-streams" { >= "5.0" } |
| 33 | + "conf-perl" |
| 34 | + "camlp5-buildscripts" { >= "0.02" } |
| 35 | + "conf-diffutils" { with-test & os-distribution = "alpine" } |
| 36 | + "re" |
| 37 | + "pcre" |
| 38 | + "ounit" { with-test } |
| 39 | + "rresult" |
| 40 | + "bos" |
| 41 | + "fmt" |
| 42 | +] |
| 43 | +build: [ |
| 44 | + ["./configure" "--prefix" prefix "-libdir" lib "-mandir" man] |
| 45 | + [make "-j%{jobs}%" "DEBUG=-g" "world.opt"] |
| 46 | + [make "-j%{jobs}%" "DEBUG=-g" "all"] |
| 47 | + [make "-C" "testsuite" "clean" "all-tests"] { with-test } |
| 48 | + [make "-C" "test" "clean" "all"] { with-test & os != "macos" } |
| 49 | +# [make "-C" "scripts" "clean" "test"] { with-test } |
| 50 | +] |
| 51 | +install: [make "install"] |
| 52 | +conflicts: [ |
| 53 | + "ocaml-option-bytecode-only" |
| 54 | +] |
| 55 | +dev-repo: "git+https://github.com/camlp5/camlp5.git" |
| 56 | +url { |
| 57 | + src: "https://github.com/camlp5/camlp5/archive/refs/tags/8.01.00.tar.gz" |
| 58 | + checksum: [ |
| 59 | + "sha512=70d66931f3c063870980e50da5bc98a5b7340d01c6f7026441267647dff6ed42cb155b5134e3943fbba14b0753a87a4c264662738c44ce9e4d99c4deb6f3a21d" |
| 60 | + ] |
| 61 | +} |
0 commit comments