2010-08-29 19:19:57 +00:00
|
|
|
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'
|
|
|
|
|
2010-09-24 12:00:37 +00:00
|
|
|
def options
|
|
|
|
[['--strict', "Compile in strict mode"]]
|
|
|
|
end
|
|
|
|
|
2010-08-29 19:19:57 +00:00
|
|
|
def install
|
2010-09-24 12:00:37 +00:00
|
|
|
|
|
|
|
# compile for strict or transitional
|
|
|
|
if ARGV.include? '--strict'
|
|
|
|
strictness = "-strict"
|
|
|
|
else
|
|
|
|
strictness = "-transitional"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure -prefix #{prefix} -mandir #{man} #{strictness}"
|
2010-08-29 19:19:57 +00:00
|
|
|
# this build fails if jobs are parallelized
|
|
|
|
system "make -j 1 world.opt"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|