|
1 | 1 | class Compcert < Formula |
2 | 2 | desc "Formally verified C compiler" |
3 | 3 | homepage "https://compcert.org/" |
4 | | - url "https://github.com/AbsInt/CompCert/archive/refs/tags/v3.9.tar.gz" |
5 | | - sha256 "6a56b4e4c2b6e776eba43a1a08047c9efd6874244bd2d8c48ccb6ccd1117aefb" |
6 | | - license "LGPL-2.1-only" |
| 4 | + url "https://github.com/AbsInt/CompCert/archive/refs/tags/v3.15.tar.gz" |
| 5 | + sha256 "6baae8f69bdbf0192d02fae911207cbde73bb1ff6b9790b1e745be0bd9b2342a" |
| 6 | + license :cannot_represent |
7 | 7 |
|
8 | 8 | bottle do |
9 | 9 | root_url "https://github.com/paperchalice/homebrew-private/releases/download/compcert-3.9" |
10 | 10 | sha256 cellar: :any_skip_relocation, big_sur: "e11fd93a2863bef7bccf64894d73b479d86e561e9de10da33360bdbeff147917" |
11 | 11 | end |
12 | 12 |
|
13 | 13 | depends_on "coq" => :build |
14 | | - depends_on "menhir" => :build |
| 14 | + # TODO: depends_on "menhir" => :build |
15 | 15 | depends_on "ocaml" => :build |
| 16 | + depends_on "opam" => :build |
16 | 17 |
|
17 | 18 | def install |
| 19 | + opamroot = buildpath/".opam" |
| 20 | + ENV["OPAMROOT"] = opamroot |
| 21 | + ENV["OPAMYES"] = "1" |
| 22 | + system "opam", "init", "--no-setup", "--disable-sandboxing" |
| 23 | + system "opam", "install", "menhir" |
| 24 | + ENV.append_path "PATH", opamroot/"default/bin" |
| 25 | + |
18 | 26 | # We pass -ignore-coq-version, otherwise every new version of coq |
19 | 27 | # breaks the strict version check. |
20 | 28 | configure_args = %W[ |
21 | 29 | -prefix #{prefix} |
22 | 30 | #{Hardware::CPU.arch}-macosx |
23 | 31 | -ignore-coq-version |
| 32 | + -ignore-ocaml-version |
24 | 33 | -clightgen |
25 | 34 | ] |
26 | 35 | system "./configure", *configure_args |
|
0 commit comments