2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 00:44:12 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ObjectiveCaml < Formula
|
2010-05-14 21:19:24 +00:00
|
|
|
homepage 'http://caml.inria.fr/ocaml/index.en.html'
|
2012-06-11 00:26:57 +00:00
|
|
|
url 'http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.bz2'
|
|
|
|
sha1 '29b44117b116b1a5bc54a8b4514af483793a769f'
|
|
|
|
|
|
|
|
head 'http://caml.inria.fr/svn/ocaml/trunk', :using => :svn
|
|
|
|
|
|
|
|
devel do
|
|
|
|
url 'http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.0+beta2.tar.bz2'
|
|
|
|
sha1 '75fedc849cc1cbfe620f0258c0f6c8214467efb7'
|
|
|
|
version '4.00.0+beta2'
|
|
|
|
end
|
2010-05-14 21:19:24 +00:00
|
|
|
|
2012-01-29 20:06:53 +00:00
|
|
|
bottle do
|
2012-04-10 16:14:44 +00:00
|
|
|
sha1 'e5e28c74b859b8bb15a11f7f2a7a33608671b1b9' => :snowleopard
|
|
|
|
sha1 'f32709be6cba5639a3f7185835963d630d6f8b59' => :lion
|
2012-01-29 20:06:53 +00:00
|
|
|
end
|
|
|
|
|
2012-08-03 10:59:44 +00:00
|
|
|
def patches
|
|
|
|
"http://caml.inria.fr/mantis/file_download.php?file_id=723&type=bug"
|
|
|
|
end
|
|
|
|
|
2010-11-08 17:13:16 +00:00
|
|
|
# Don't strip symbols, so dynamic linking doesn't break.
|
2010-04-07 05:58:35 +00:00
|
|
|
skip_clean :all
|
2009-09-04 00:44:12 +00:00
|
|
|
|
|
|
|
def install
|
2011-01-16 15:48:48 +00:00
|
|
|
system "./configure", "--prefix", HOMEBREW_PREFIX, "--mandir", man
|
2010-11-08 17:13:16 +00:00
|
|
|
ENV.deparallelize # Builds are not parallel-safe, esp. with many cores
|
2009-09-30 19:38:55 +00:00
|
|
|
system "make world"
|
2009-09-04 00:44:12 +00:00
|
|
|
system "make opt"
|
|
|
|
system "make opt.opt"
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2011-12-06 19:50:40 +00:00
|
|
|
(lib+'ocaml/compiler-libs').install 'typing', 'parsing', 'utils'
|
2010-07-10 20:20:36 +00:00
|
|
|
|
2012-01-30 06:02:28 +00:00
|
|
|
# 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
|
2010-07-10 20:20:36 +00:00
|
|
|
ln_s HOMEBREW_PREFIX+"lib/ocaml/site-lib", lib+"ocaml/site-lib"
|
2009-09-04 00:44:12 +00:00
|
|
|
end
|
|
|
|
end
|