2011-03-10 05:11:03 +00:00
|
|
|
class Camlp5 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
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"
|
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
|