homebrew-core/Formula/camlp5.rb
François Garillot 4b6ace7402 added option for (by default) transitional (ie. permissive) compilation of camlp5
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-12 21:53:39 -07:00

28 lines
663 B
Ruby

require 'formula'
class Camlp5 <Formula
url 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-5.15.tgz'
homepage 'http://pauillac.inria.fr/~ddr/camlp5/'
md5 '67ccbf37ffe33dec137ee71ca6189ea2'
depends_on 'objective-caml'
def options
[['--strict', "Compile in strict mode"]]
end
def install
# compile for strict or transitional
if ARGV.include? '--strict'
strictness = "-strict"
else
strictness = "-transitional"
end
system "./configure -prefix #{prefix} -mandir #{man} #{strictness}"
# this build fails if jobs are parallelized
system "make -j 1 world.opt"
system "make install"
end
end