-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
opam
74 lines (72 loc) · 2.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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"
patches: [
"safe-string.patch"
"f0ea53725465260556832398096cef8d3f20b49d.patch"
]
build: [
[
"./configure"
"--bindir=%{bin}%"
"--libdir=%{lib}%/ocaml"
"--pkgdir=%{lib}%"
]
[make "clean"]
[make "all"] {ocaml:native-dynlink}
[make "byte"] {!ocaml:native-dynlink}
]
depends: [
"ocaml" {>= "4.05" & < "4.06"}
"ocamlbuild" {build}
]
install: [
[make "install" "install-META"]
]
remove: [
["ocamlfind" "remove" "camlp4"]
["rm" "-rf" "%{lib}%/ocaml/camlp4"]
["rm" "-f" "%{bin}%/camlp4" "%{bin}%/camlp4boot" "%{bin}%/mkcamlp4"
"%{bin}%/camlp4r" "%{bin}%/camlp4rf" "%{bin}%/camlp4orf"
"%{bin}%/camlp4o" "%{bin}%/camlp4of" "%{bin}%/camlp4oof"
"%{bin}%/camlp4prof"]
]
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."""
conflicts: ["ocaml-system"]
flags: light-uninstall
url {
src: "https://github.com/ocaml/camlp4/archive/4.05+1.tar.gz"
checksum: [
"sha256=9819b5c7a5c1a4854be18020ef312bfec6541e26c798a5c863be875bfd7e8e2b"
"md5=c69d1c2aebf231ea98e7464f020cffc4"
]
}
extra-source "safe-string.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/camlp4/safe-string.patch"
checksum: [
"sha256=c54b04e9f81cc8ae22bd0c1ebaf160395051f5448e91273e28db507ea153bad6"
"md5=63fc1a60718ebbba6c4b821b706a3042"
]
}
extra-source "f0ea53725465260556832398096cef8d3f20b49d.patch" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/camlp4/f0ea53725465260556832398096cef8d3f20b49d.patch"
checksum: [
"sha256=13f08a9365e8d3388b96dab61c7f369cd12051bbb0985ac8615dc76ad29a6a2e"
"md5=4e15b0fb960be4be48b154bfafbb9a16"
]
}