this repo has no description
1opam-version: "2.0"
2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3synopsis: "Zeroth alpha release of OCaml 5.0.0"
4maintainer: [
5 "David Allsopp <david@tarides.com>"
6 "Florian Angeletti <florian.angeletti@inria.fr>"
7]
8authors: ["Xavier Leroy" "Damien Doligez" "Alain Frisch" "Jacques Garrigue" "Didier Rémy" "Jérôme Vouillon"]
9homepage: "https://ocaml.org"
10bug-reports: "https://github.com/ocaml/opam-repository/issues"
11dev-repo: "git+https://github.com/ocaml/ocaml.git#5.0"
12depends: [
13 "ocaml" {= "5.0.0" & post}
14 "base-unix" {post}
15 "base-bigarray" {post}
16 "base-threads" {post}
17 "base-domains" {post}
18 "base-nnp" {post}
19 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64"}
20 "ocaml-beta" {opam-version < "2.1.0"}
21]
22conflicts: [
23 "dune" {>= "3.4.0"}
24 "ocaml-option-fp"
25]
26conflict-class: "ocaml-core-compiler"
27flags: [ compiler avoid-version ]
28setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
29build-env: [
30 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
31 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
32]
33build: [
34 [
35 "./configure"
36 "--prefix=%{prefix}%"
37 "--docdir=%{doc}%/ocaml"
38 "-C"
39 "--with-afl" {ocaml-option-afl:installed}
40 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
41 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
42 "--enable-flambda" {ocaml-option-flambda:installed}
43 "--enable-frame-pointers" {ocaml-option-fp:installed}
44 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
45 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
46 "CFLAGS=-Os" {ocaml-option-musl:installed}
47 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
48 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
49 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
50 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
51 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
52 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
53 "ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
54 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
55 "ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"}
56 "ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"}
57 "AS=as --32" {ocaml-option-32bit:installed & os="linux"}
58 "AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"}
59 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
60 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
61 "PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"}
62 "LIBS=-static" {ocaml-option-static:installed}
63 "--disable-warn-error"
64 ]
65 [make "-j%{jobs}%"]
66]
67install: [make "install"]
68url {
69 src: "https://github.com/ocaml/ocaml/archive/5.0.0-alpha0.tar.gz"
70 checksum: "sha256=70f5353001ba95dff96f71680a435e1e7d3708eddb1fd8c74b9e18a292fe40ce"
71}
72post-messages: [
73 "A failure in the middle of the build may be caused by build parallelism
74 (enabled by default).
75 Please file a bug report at https://github.com/ocaml/opam-repository/issues"
76 {failure & jobs > 1}
77 "You can try installing again including --jobs=1
78 to force a sequential build instead."
79 {failure & jobs > 1 & opam-version >= "2.0.5"}
80]
81depopts: [
82 "ocaml-option-32bit"
83 "ocaml-option-afl"
84 "ocaml-option-bytecode-only"
85 "ocaml-option-no-flat-float-array"
86 "ocaml-option-flambda"
87 "ocaml-option-musl"
88 "ocaml-option-leak-sanitizer"
89 "ocaml-option-address-sanitizer"
90 "ocaml-option-static"
91]
92available: os != "win32"
93extra-source "ocaml-variants.install" {
94 src:
95 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install"
96 checksum: [
97 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
98 "md5=3e969b841df1f51ca448e6e6295cb451"
99 ]
100}
101x-maintained: false