2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 00:44:12 +00:00
|
|
|
|
|
|
|
class ObjectiveCaml <Formula
|
2010-05-14 21:19:24 +00:00
|
|
|
url 'http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.2.tar.bz2'
|
|
|
|
homepage 'http://caml.inria.fr/ocaml/index.en.html'
|
|
|
|
md5 '4601a7aea66444d61704de8de46c52c6'
|
|
|
|
|
2010-06-23 20:28:52 +00:00
|
|
|
# note it indeed seems necessary to skip cleaning everything
|
|
|
|
# see http://github.com/mxcl/homebrew/issues/issue/188
|
2010-06-05 16:07:41 +00:00
|
|
|
def skip_clean? path; true; end
|
2009-09-04 00:44:12 +00:00
|
|
|
|
|
|
|
def install
|
2010-06-05 16:07:41 +00:00
|
|
|
system "./configure", "--prefix", prefix, "--mandir", man
|
2009-09-30 19:38:55 +00:00
|
|
|
system "make world"
|
2009-09-29 21:50:30 +00:00
|
|
|
# 'world' can be built in parallel, but the other targets have problems
|
|
|
|
ENV.deparallelize
|
2009-09-04 00:44:12 +00:00
|
|
|
system "make opt"
|
|
|
|
system "make opt.opt"
|
|
|
|
system "make install"
|
2010-07-10 20:20:36 +00:00
|
|
|
|
|
|
|
# site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location
|
|
|
|
(HOMEBREW_PREFIX+"lib/ocaml/site-lib").mkpath
|
|
|
|
ln_s HOMEBREW_PREFIX+"lib/ocaml/site-lib", lib+"ocaml/site-lib"
|
2009-09-04 00:44:12 +00:00
|
|
|
end
|
|
|
|
end
|