···
+
synopsis: "Preprocessor-pretty-printer of OCaml"
+
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools.
+
As a preprocessor, it allows to:
+
extend the syntax of OCaml,
+
redefine the whole syntax of the language.
+
As a pretty printer, it allows to:
+
display OCaml programs in an elegant way,
+
convert from one syntax to another,
+
check the results of syntax extensions.
+
Camlp5 also provides some parsing and pretty printing tools:
+
stream parsers and lexers
+
It works as a shell command and can also be used in the OCaml toplevel."""
+
maintainer: "https://github.com/ocaml/opam-repository/issues"
+
authors: ["Daniel de Rauglaudre" "Chet Murthy"]
+
license: "BSD-3-Clause"
+
homepage: "https://camlp5.github.io"
+
doc: "https://camlp5.github.io/doc/html"
+
bug-reports: "https://github.com/camlp5/camlp5/issues"
+
"ocaml" {>= "4.10" & < "5.01.0"}
+
"camlp-streams" { >= "5.0" }
+
"conf-diffutils" { with-test & os-distribution = "alpine" }
+
["./configure" "--prefix" prefix "-libdir" lib "-mandir" man]
+
[make "-j%{jobs}%" "DEBUG=-g" "world.opt"]
+
[make "-j%{jobs}%" "DEBUG=-g" "all"]
+
[make "-C" "testsuite" "clean" "all-tests"] { with-test }
+
[make "-C" "test" "clean" "all"] { with-test }
+
# [make "-C" "scripts" "clean" "test"] { with-test }
+
install: [make "install"]
+
"ocaml-option-bytecode-only"
+
dev-repo: "git+https://github.com/camlp5/camlp5.git"
+
src: "https://github.com/camlp5/camlp5/archive/refs/tags/8.00.05.tar.gz"
+
"sha512=f4cee1fba85dc3a7479929facd79d0b88f23de575107886a8d4c41cd4a0bee21ccc72f2791712635e401ca10c3ec24cfea32558eca09ba6616e01e8433c57bbe"