2014-05-25 14:52:05 +00:00
|
|
|
require "formula"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Camlp5 < Formula
|
2014-05-25 14:52:05 +00:00
|
|
|
homepage "http://camlp5.gforge.inria.fr/"
|
|
|
|
url "http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.11.tgz"
|
|
|
|
sha1 "4649a2850869d624182bfb5a02f60800ae35b935"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
2014-05-25 14:52:05 +00:00
|
|
|
depends_on "objective-caml"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
2014-05-25 14:52:05 +00:00
|
|
|
option "strict", "Compile in strict mode"
|
2010-09-24 12:00:37 +00:00
|
|
|
|
2010-08-29 19:19:57 +00:00
|
|
|
def install
|
2014-05-25 14:52:05 +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
|
2014-05-25 14:52:05 +00:00
|
|
|
system "make", "world.opt"
|
|
|
|
system "make", "install"
|
2010-08-29 19:19:57 +00:00
|
|
|
end
|
|
|
|
end
|