-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
59 lines (57 loc) · 2.06 KB
/
opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
opam-version: "2.0"
authors: ["Daniel de Rauglaudre" "Nicolas Pouillard"]
maintainer: "jeremie@dimino.org"
homepage: "https://github.com/ocaml/camlp4"
license: "LGPL-2.1-only"
build: [
[
"./configure"
"--bindir=%{bin}%"
"--libdir=%{lib}%/ocaml"
"--pkgdir=%{lib}%"
]
[make "all"] {ocaml:native-dynlink}
[make "byte"] {!ocaml:native-dynlink}
]
depends: [
"ocaml" {>= "4.02" & < "4.03"}
"ocamlfind"
"ocamlbuild" {build}
"conf-which" {build}
]
available: os != "cygwin"
install: [
[make "install" "install-META"]
]
remove: [
["rm" "-rf" "%{lib}%/camlp4"]
["rm" "-f" "%{bin}%/camlp4" "%{bin}%/camlp4boot" "%{bin}%/mkcamlp4"
"%{bin}%/camlp4r" "%{bin}%/camlp4rf" "%{bin}%/camlp4orf"
"%{bin}%/camlp4o" "%{bin}%/camlp4of" "%{bin}%/camlp4oof"
"%{bin}%/camlp4prof" "%{bin}%/camlp4rf.opt" "%{bin}%/camlp4orf.opt"
"%{bin}%/camlp4o.opt" "%{bin}%/camlp4oof.opt" "%{bin}%/camlp4r.opt"
]
]
bug-reports: "https://github.com/ocaml/camlp4/issues"
dev-repo: "git+https://github.com/ocaml/camlp4.git"
synopsis:
"Camlp4 is a system for writing extensible parsers for programming languages"
description: """
It provides a set of OCaml libraries that are used to define grammars as well
as loadable syntax extensions of such grammars. Camlp4 stands for Caml
Preprocessor and Pretty-Printer and one of its most important applications is
the definition of domain-specific extensions of the syntax of OCaml.
Camlp4 was part of the official OCaml distribution until its version 4.01.0.
Since then it has been replaced by a simpler system which is easier to maintain
and to learn: ppx rewriters and extension points.
This version of Camlp4 installs using the `ocamlfind` packaging utility. If
you were using `+I camlp4` to directly locate Camlp4, this will no longer work."""
conflicts: ["ocaml-system"]
flags: light-uninstall
url {
src: "https://github.com/ocaml/camlp4/archive/4.02+3.tar.gz"
checksum: [
"sha256=0bb27d2a159c97822fe2822f549ab790a7ec0ff9e99b3ae49048e6553473ca93"
"md5=3918b29747c0e701d068f9ce475ef82e"
]
}