···
3
+
synopsis: "Preprocessor-pretty-printer of OCaml"
5
+
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools.
7
+
As a preprocessor, it allows to:
9
+
extend the syntax of OCaml,
10
+
redefine the whole syntax of the language.
11
+
As a pretty printer, it allows to:
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:
20
+
stream parsers and lexers
22
+
It works as a shell command and can also be used in the OCaml toplevel."""
23
+
maintainer: ["Chet Murthy <chetsky@gmail.com>"]
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"
30
+
"ocaml" {>= "4.10" & < "5.04.0" }
32
+
"camlp-streams" { >= "5.0" }
34
+
"conf-bash" { with-test }
35
+
"camlp5-buildscripts" { >= "0.02" }
36
+
"conf-diffutils" { with-test & (os-distribution = "alpine" | os-distribution = "freebsd" | os-family = "opensuse") }
37
+
"re" { >= "1.11.0" }
38
+
"ounit2" { with-test }
39
+
"pcre2" { with-test }
45
+
["./configure" "--prefix" prefix "-libdir" lib "-mandir" man]
46
+
[make "-j%{jobs}%" "DEBUG=-g" "world.opt"]
47
+
[make "-j%{jobs}%" "DEBUG=-g" "all"]
48
+
[make "-C" "testsuite" "clean" "all-tests"] { with-test }
49
+
[make "-C" "test" "clean" "all"] { with-test & os != "macos" }
50
+
# [make "-C" "scripts" "clean" "test"] { with-test }
52
+
install: [make "install"]
54
+
"ocaml-option-bytecode-only"
55
+
"pa_ppx" { < "0.16" }
56
+
"p5scm" { <= "0.3.1" }
57
+
"matita" { <= "0.99.5" }
58
+
"lablgl" { <= "1.07" }
60
+
x-ci-accept-failures: [ "opensuse-tumbleweed" ]
61
+
dev-repo: "git+https://github.com/camlp5/camlp5.git"
63
+
src: "https://github.com/camlp5/camlp5/archive/refs/tags/8.03.01.tar.gz"
65
+
"sha512=144ab15e18673fa485d08cf37c6ba69146db7db4be9e7031e202e0747d922e223396b83881b1d65cf27bedb2115d91e5eb62b5a22e2d57dda838013ebd398ff2"