compcert: depend on coq
depend on coq since the version in core (8.6) now matches what is needed Closes #11463. Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
This commit is contained in:
parent
1df2016db7
commit
6abd0e096f
1 changed files with 7 additions and 19 deletions
|
@ -3,6 +3,7 @@ class Compcert < Formula
|
||||||
homepage "http://compcert.inria.fr"
|
homepage "http://compcert.inria.fr"
|
||||||
url "http://compcert.inria.fr/release/compcert-3.0.1.tgz"
|
url "http://compcert.inria.fr/release/compcert-3.0.1.tgz"
|
||||||
sha256 "09c7dc18c681231c6e83a963b283b66a9352a9611c9695f4b0c4b7df8c90f935"
|
sha256 "09c7dc18c681231c6e83a963b283b66a9352a9611c9695f4b0c4b7df8c90f935"
|
||||||
|
revision 1
|
||||||
|
|
||||||
bottle do
|
bottle do
|
||||||
cellar :any_skip_relocation
|
cellar :any_skip_relocation
|
||||||
|
@ -13,9 +14,9 @@ class Compcert < Formula
|
||||||
|
|
||||||
option "with-config-x86_64", "Build Compcert with ./configure 'x86_64'"
|
option "with-config-x86_64", "Build Compcert with ./configure 'x86_64'"
|
||||||
|
|
||||||
|
depends_on "coq" => :build
|
||||||
depends_on "menhir" => :build
|
depends_on "menhir" => :build
|
||||||
depends_on "ocaml" => :build
|
depends_on "ocaml" => :build
|
||||||
depends_on "opam" => :build
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV.permit_arch_flags
|
ENV.permit_arch_flags
|
||||||
|
@ -26,24 +27,11 @@ class Compcert < Formula
|
||||||
# causes problems with the compcert compiler at runtime.
|
# causes problems with the compcert compiler at runtime.
|
||||||
inreplace "configure", "${toolprefix}gcc", "${toolprefix}#{ENV.cc}"
|
inreplace "configure", "${toolprefix}gcc", "${toolprefix}#{ENV.cc}"
|
||||||
|
|
||||||
ENV["OPAMYES"] = "1"
|
args = ["-prefix", prefix]
|
||||||
ENV["OPAMROOT"] = Pathname.pwd/"opamroot"
|
args << (build.with?("config-x86_64") ? "x86_64-macosx" : "ia32-macosx")
|
||||||
(Pathname.pwd/"opamroot").mkpath
|
system "./configure", *args
|
||||||
system "opam", "init", "--no-setup"
|
system "make", "all"
|
||||||
system "opam", "install", "coq=8.6"
|
system "make", "install"
|
||||||
|
|
||||||
if build.with? "config-x86_64"
|
|
||||||
system "opam", "config", "exec", "--",
|
|
||||||
"./configure", "-prefix", prefix, "x86_64-macosx"
|
|
||||||
else
|
|
||||||
system "opam", "config", "exec", "--",
|
|
||||||
"./configure", "-prefix", prefix, "ia32-macosx"
|
|
||||||
end
|
|
||||||
|
|
||||||
system "opam", "config", "exec", "--",
|
|
||||||
"make", "all"
|
|
||||||
system "opam", "config", "exec", "--",
|
|
||||||
"make", "install"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in a new issue