blob: 1db2f28a98e6b5034c3f8ee2aa81b783b5b73c5a (
plain)
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
|
class ObjectiveCaml < Formula
homepage "http://ocaml.org"
url "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.1.tar.gz"
sha1 "6af8c67f2badece81d8e1d1ce70568a16e42313e"
revision 2
head "http://caml.inria.fr/svn/ocaml/trunk", :using => :svn
option "with-x11", "Install with the Graphics module"
depends_on :x11 => :optional
bottle do
sha1 "d3f09d213f57210e4a9e1b482ca8e2fdf39d5836" => :yosemite
sha1 "5fb1b744f2e8efa49d00d5bcf01547db2b3d32c4" => :mavericks
sha1 "e551c48370a3b5a43d843510b81032fccc2197ec" => :mountain_lion
end
def install
args = %W[
--prefix #{HOMEBREW_PREFIX}
--mandir #{man}
-cc #{ENV.cc}
-with-debug-runtime
]
args << "-aspp" << "#{ENV.cc} -c"
args << "-no-graph" if build.without? "x11"
ENV.deparallelize # Builds are not parallel-safe, esp. with many cores
system "./configure", *args
system "make", "world"
system "make", "opt"
system "make", "opt.opt"
system "make", "PREFIX=#{prefix}", "install"
end
end
|