···
2
+
synopsis: "Preprocessor-pretty-printer of OCaml"
4
+
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools.
6
+
As a preprocessor, it allows to:
8
+
extend the syntax of OCaml,
9
+
redefine the whole syntax of the language.
10
+
As a pretty printer, it allows to:
12
+
display OCaml programs in an elegant way,
13
+
convert from one syntax to another,
14
+
check the results of syntax extensions.
15
+
Camlp5 also provides some parsing and pretty printing tools:
19
+
stream parsers and lexers
21
+
It works as a shell command and can also be used in the OCaml toplevel."""
22
+
maintainer: "https://github.com/ocaml/opam-repository/issues"
23
+
authors: ["Daniel de Rauglaudre" "Chet Murthy"]
24
+
license: "BSD-3-Clause"
25
+
homepage: "https://camlp5.github.io"
26
+
doc: "https://camlp5.github.io/doc/html"
27
+
bug-reports: "https://github.com/camlp5/camlp5/issues"
29
+
"ocaml" {>= "4.10" & < "5.01.0"}
31
+
"camlp-streams" { >= "5.0" }
33
+
"camlp5-buildscripts"
34
+
"conf-diffutils" { with-test & os-distribution = "alpine" }
37
+
"ounit" { with-test }
43
+
["./configure" "--prefix" prefix "-libdir" lib "-mandir" man]
44
+
[make "-j%{jobs}%" "DEBUG=-g" "world.opt"]
45
+
[make "-j%{jobs}%" "DEBUG=-g" "all"]
46
+
[make "-C" "testsuite" "clean" "all-tests"] { with-test }
47
+
[make "-C" "test" "clean" "all"] { with-test }
48
+
# [make "-C" "scripts" "clean" "test"] { with-test }
50
+
install: [make "install"]
52
+
"ocaml-option-bytecode-only"
54
+
dev-repo: "git+https://github.com/camlp5/camlp5.git"
56
+
src: "https://github.com/camlp5/camlp5/archive/refs/tags/8.00.05.tar.gz"
58
+
"sha512=f4cee1fba85dc3a7479929facd79d0b88f23de575107886a8d4c41cd4a0bee21ccc72f2791712635e401ca10c3ec24cfea32558eca09ba6616e01e8433c57bbe"