2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-04 00:44:12 +00:00
|
|
|
|
|
|
|
class ObjectiveCaml <Formula
|
|
|
|
@url='http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.1.tar.bz2'
|
|
|
|
@homepage='http://caml.inria.fr/ocaml/index.en.html'
|
|
|
|
@md5='fe011781f37f6b41fe08e0706969a89e'
|
2009-11-16 23:31:15 +00:00
|
|
|
|
|
|
|
aka :ocaml, 'o-caml'
|
2009-09-04 00:44:12 +00:00
|
|
|
|
|
|
|
def install
|
2009-09-30 19:38:55 +00:00
|
|
|
system "./configure --prefix #{prefix}"
|
|
|
|
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"
|
|
|
|
end
|
2009-12-16 20:42:36 +00:00
|
|
|
|
2009-12-16 20:42:36 +00:00
|
|
|
# note it indeed seems necessary to clean everything
|
|
|
|
# see http://github.com/mxcl/homebrew/issues#issue/188
|
2009-12-16 20:42:36 +00:00
|
|
|
def skip_clean? path; true; end
|
2009-09-04 00:44:12 +00:00
|
|
|
end
|