homebrew-core/Formula/camlp5.rb

26 lines
625 B
Ruby
Raw Normal View History

2014-05-25 14:52:05 +00:00
require "formula"
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"
2014-05-25 14:52:05 +00:00
depends_on "objective-caml"
2014-05-25 14:52:05 +00:00
option "strict", "Compile in strict mode"
def install
2014-05-25 14:52:05 +00:00
if build.include? "strict"
strictness = "-strict"
else
strictness = "-transitional"
end
system "./configure", "-prefix", prefix, "-mandir", man, strictness
# this build fails if jobs are parallelized
ENV.deparallelize
2014-05-25 14:52:05 +00:00
system "make", "world.opt"
system "make", "install"
end
end