2010-08-29 19:19:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Camlp5 < Formula
|
2010-08-29 19:19:57 +00:00
|
|
|
homepage 'http://pauillac.inria.fr/~ddr/camlp5/'
|
2013-03-30 16:19:56 +00:00
|
|
|
url 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.08.tgz'
|
|
|
|
sha1 '6cdfc29a9bd23dcee7775996ac29f2a457119d4b'
|
|
|
|
version '6.08-1'
|
2010-08-29 19:19:57 +00:00
|
|
|
|
|
|
|
depends_on 'objective-caml'
|
|
|
|
|
2012-08-09 05:31:37 +00:00
|
|
|
option 'strict', 'Compile in strict mode'
|
2010-09-24 12:00:37 +00:00
|
|
|
|
2012-10-20 06:08:59 +00:00
|
|
|
def patches
|
2013-03-30 16:19:56 +00:00
|
|
|
{ :p0 => "http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-6.08-1" }
|
2012-10-20 06:08:59 +00:00
|
|
|
end
|
|
|
|
|
2010-08-29 19:19:57 +00:00
|
|
|
def install
|
2012-08-09 15:51:54 +00:00
|
|
|
if build.include? 'strict'
|
2010-09-24 12:00:37 +00:00
|
|
|
strictness = "-strict"
|
|
|
|
else
|
|
|
|
strictness = "-transitional"
|
|
|
|
end
|
|
|
|
|
2012-05-15 18:31:21 +00:00
|
|
|
system "./configure", "-prefix", prefix, "-mandir", man, strictness
|
2010-08-29 19:19:57 +00:00
|
|
|
# this build fails if jobs are parallelized
|
2011-12-09 19:48:01 +00:00
|
|
|
ENV.deparallelize
|
|
|
|
system "make world.opt"
|
2010-08-29 19:19:57 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|