homebrew-core/Formula/camlp5.rb

31 lines
986 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Camlp5 < Formula
desc "Camlp5 is a preprocessor and pretty-printer for OCaml"
2014-05-25 14:52:05 +00:00
homepage "http://camlp5.gforge.inria.fr/"
2015-07-31 17:57:32 +00:00
url "http://camlp5.gforge.inria.fr/distrib/src/camlp5-6.14.tgz"
sha256 "09f9ed12893d2ec39c88106af2306865c966096bedce0250f2fe52b67d2480e2"
2014-09-27 18:18:56 +00:00
bottle do
2015-07-18 21:10:50 +00:00
sha256 "aa844f23752518cdfceba1513388c90b273a78219f1b671809791acebe71fb87" => :yosemite
sha256 "de39f4abfd0f57a73d6d45850bd8e3b82f78e25f217649b51b4bc32b0df65df4" => :mavericks
sha256 "c5f5d96059f168aee1c86ea8c47789e27bc542baefa351eed463cb3f9c605df5" => :mountain_lion
2014-09-27 18:18:56 +00:00
end
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