···11+opam-version: "2.0"
22+synopsis:
33+ "Camlp4 is a system for writing extensible parsers for programming languages"
44+description: """\
55+It provides a set of OCaml libraries that are used to define grammars as well
66+as loadable syntax extensions of such grammars. Camlp4 stands for Caml
77+Preprocessor and Pretty-Printer and one of its most important applications is
88+the definition of domain-specific extensions of the syntax of OCaml.
99+1010+Camlp4 was part of the official OCaml distribution until its version 4.01.0.
1111+Since then it has been replaced by a simpler system which is easier to maintain
1212+and to learn: ppx rewriters and extension points."""
1313+maintainer: "ygrek@autistici.org"
1414+authors: ["Daniel de Rauglaudre" "Nicolas Pouillard"]
1515+license: "LGPL-2.1-only"
1616+homepage: "https://github.com/camlp4/camlp4"
1717+bug-reports: "https://github.com/camlp4/camlp4/issues"
1818+depends: [
1919+ "ocaml" {>= "5.1" & < "5.2"}
2020+ "ocamlbuild" {build}
2121+ "ocamlfind" {build}
2222+ "camlp-streams"
2323+]
2424+build: [
2525+ [
2626+ "./configure"
2727+ "--bindir=%{bin}%"
2828+ "--libdir=%{lib}%/ocaml"
2929+ "--pkgdir=%{lib}%"
3030+ "--pinned"
3131+ ]
3232+ [make "clean"]
3333+ [make "all"] {ocaml:native-dynlink}
3434+ [make "byte"] {!ocaml:native-dynlink}
3535+]
3636+install: [make "install" "install-META"]
3737+dev-repo: "git+https://github.com/camlp4/camlp4.git"
3838+url {
3939+ src: "https://github.com/camlp4/camlp4/archive/refs/tags/5.1+1.tar.gz"
4040+ checksum: [
4141+ "md5=1a22cdbb9377ed9d64b1a3e091051348"
4242+ "sha512=2aa69b23397d2bf2dde6d1e8cfa4008da35960822db36bb04a922c4640cadadd7d5a9f12cc0e855447327131459c0e63bdd6269e8abd598a3da10966eab1d74a"
4343+ ]
4444+}