this repo has no description
1opam-version: "2.0"
2synopsis: "OCaml 4.02, with improved type error messages"
3maintainer: "David Allsopp <david@tarides.com>"
4depends: [
5 "ocaml" {= "4.02.0" & post}
6 "base-unix" {post}
7 "base-bigarray" {post}
8 "base-threads" {post}
9 "base-ocamlbuild" {post}
10]
11conflict-class: "ocaml-core-compiler"
12flags: compiler
13setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
14build: [
15 [
16 "sed"
17 "-ib"
18 "-e"
19 "s/opts=\"\"/opts=\"-Wno-implicit-function-declaration\"/"
20 "config/auto-aux/hasgot"
21 ] {os = "macos"}
22 ["./configure" "-prefix" "%{prefix}%"]
23 {os != "openbsd" & os != "freebsd" & os != "macos"}
24 ["./configure" "-prefix" "%{prefix}%" "-cc" "cc" "-aspp" "cc -c"]
25 {os = "openbsd" | os = "freebsd" | os = "macos"}
26 ["%{make}%" "world"]
27 ["%{make}%" "world.opt"]
28]
29install: ["%{make}%" "install"]
30patches: ["fix-gcc10.patch" "improved-error.patch" "gpr1330.patch" "alt-signal-stack.patch"]
31url {
32 src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.0.tar.gz"
33 checksum: [
34 "sha256=dbbcbd72a29a51206677a606ea09dfec83ae25cbbf52dee90306bc04812cd034"
35 "md5=8bba7e7d872083af1723dd450e07a5f4"
36 ]
37}
38extra-source "improved-error.patch" {
39 src:
40 "https://gist.githubusercontent.com/andrewray/1928825fea090e50c0de/raw/e121b5cd176cdf6b882bc402276235b1c0a71b69/improved-error.patch"
41 checksum: [
42 "sha256=9e3375865e121d84f2fc235084cbe36ec75012828a52ef5fb33b550068ae9c75"
43 "md5=047e4294cf4a00448985cabb7b75fba6"
44 ]
45}
46available: !(os = "macos" & arch = "arm64")
47license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
48authors: [
49 "Xavier Leroy"
50 "Damien Doligez"
51 "Alain Frisch"
52 "Jacques Garrigue"
53 "Didier Rémy"
54 "Jérôme Vouillon"
55]
56bug-reports: "https://github.com/ocaml/opam-repository/issues"
57homepage: "https://ocaml.org"
58dev-repo: "git+https://github.com/ocaml/ocaml.git#4.02"
59extra-source "alt-signal-stack.patch" {
60 src: "https://github.com/ocaml/ocaml/commit/9de2b77472aee18a94b41cff70caee27fb901225.patch?full_index=1"
61 checksum: "sha256=91841447cc2d11ebe67a078ace677a18f06432ebf15c4c6d5a09e04b67dd041a"
62}
63extra-source "gpr1330.patch" {
64 src: "https://github.com/ocaml/ocaml/commit/bcc7a767279ff70518b3f4219cc0b9bffec7dd43.patch?full_index=1"
65 checksum: "sha256=594d4dd6c192fe77e9fc025674b51e3de74d70326b2e750a249a09eeded68716"
66}
67extra-source "fix-gcc10.patch" {
68 src:
69 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/fix-gcc10.patch.4.02.0+improved-errors"
70 checksum: [
71 "sha256=70a506f8f44a472fc27cf4d7097d5fa47d15ea584dd956a39b73c0e8cf1e35b4"
72 "md5=4afa0ebb0a06b65e95e4906e1dced628"
73 ]
74}