homebrew-core/Formula/camlp5.rb

32 lines
1 KiB
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-09-23 20:36:10 +00:00
sha256 "674b3176e8be120ad7c0d80d4f12ad40357720fe754f123c7e7a24720e28cbff" => :el_capitan
2015-07-31 18:50:40 +00:00
sha256 "0f8a0cf06129ef87819e72d9eba821322d9d41e6ef85ffda19ce7753ac7e8b3e" => :yosemite
sha256 "4780b3746a506a52e9921fef376f47e283670610c67875182979cd9bf7e8f2a0" => :mavericks
sha256 "60312c75054d1db597c8afaf2d0563d41e192480531b74b2ad40908e36bbfb8b" => :mountain_lion
2014-09-27 18:18:56 +00:00
end
depends_on "ocaml"
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