e441192b74
* brew install will find an aliased formula * aliases are searched against * warn when creating a new formula that has an existing alias. If Subversion has an alias "svn", then warn when the user tries to create a new formula "svn". The formula can still be created, though the user should make sure it's not a duplicate of the existing aliased one. Subversion and Objective-Caml formulas get some alises here, so we have something to test against.
19 lines
510 B
Ruby
19 lines
510 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'
|
|
|
|
aka :ocaml, 'o-caml'
|
|
|
|
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
|