61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
17 lines
484 B
Ruby
17 lines
484 B
Ruby
require 'formula'
|
|
|
|
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'
|
|
|
|
def install
|
|
system "./configure --prefix #{prefix}"
|
|
system "make world"
|
|
# 'world' can be built in parallel, but the other targets have problems
|
|
ENV.deparallelize
|
|
system "make opt"
|
|
system "make opt.opt"
|
|
system "make install"
|
|
end
|
|
end
|