homebrew-core/Formula/objective-caml.rb

42 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class ObjectiveCaml < Formula
homepage 'http://www.ocaml-lang.org'
url 'http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.1.tar.bz2'
sha1 '10b8a4d0b88d20b003e3dd719f2ac9434e6a1042'
devel do
url 'http://caml.inria.fr/pub/distrib/ocaml-4.01/ocaml-4.01.0+rc1.tar.bz2'
version '4.01.0+rc1'
sha1 '7591b7dd9638463648e60ad26786c3d2b6cb8263'
end
head 'http://caml.inria.fr/svn/ocaml/trunk', :using => :svn
2012-09-02 08:08:58 +00:00
depends_on :x11 if MacOS::X11.installed?
bottle do
2013-03-03 23:33:42 +00:00
revision 1
sha1 '523b9d6224d1920fd8727eda0e2faa0354d5cdb8' => :mountain_lion
sha1 '0a5d13d5bf7d9aa294623e1a6ba250288d25a076' => :lion
sha1 '22c9a38f4b36c50d58ae28437efd23ce00698164' => :snow_leopard
end
def install
system "./configure", "--prefix", HOMEBREW_PREFIX,
"--mandir", man,
"-cc", ENV.cc,
"-with-debug-runtime",
"-aspp", "#{ENV.cc} -c"
2010-11-08 17:13:16 +00:00
ENV.deparallelize # Builds are not parallel-safe, esp. with many cores
system "make world"
system "make opt"
system "make opt.opt"
system "make", "PREFIX=#{prefix}", "install"
# site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location,
# which is mkpath'd by Keg#link when something installs into it
ln_s HOMEBREW_PREFIX/"lib/ocaml/site-lib", lib/"ocaml/site-lib"
end
end