Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b71a4aa193
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.93 kb
require 'formula'
class ObjectiveCaml < Formula
homepage 'http://www.ocaml-lang.org'
url 'http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.0.tar.bz2'
sha1 '22c0ae84c0049e75ec1577d5c1a26c293bb740b3'
head 'http://caml.inria.fr/svn/ocaml/trunk', :using => :svn
# Don't strip symbols, so dynamic linking doesn't break.
skip_clean :all
def install
system "./configure", "--prefix", HOMEBREW_PREFIX, "--mandir", man
ENV.deparallelize # Builds are not parallel-safe, esp. with many cores
system "make world"
system "make opt"
system "make opt.opt"
system "make", "PREFIX=#{prefix}", "install"
(lib+'ocaml/compiler-libs').install 'typing', 'parsing', 'utils'
# site-lib in the Cellar will be a symlink to the HOMEBREW_PREFIX location,
# which is mkpath'd by Keg#link when something installs into it
ln_s HOMEBREW_PREFIX+"lib/ocaml/site-lib", lib+"ocaml/site-lib"
end
end
Jump to Line
Something went wrong with that request. Please try again.