7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
25 lines
836 B
Ruby
Executable file
25 lines
836 B
Ruby
Executable file
require 'formula'
|
|
|
|
class ObjectiveCaml <Formula
|
|
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'
|
|
|
|
# note it indeed seems necessary to skip cleaning everything
|
|
# see http://github.com/mxcl/homebrew/issues/issue/188
|
|
skip_clean :all
|
|
|
|
def install
|
|
system "./configure", "--prefix", prefix, "--mandir", man
|
|
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"
|
|
|
|
# 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"
|
|
end
|
|
end
|