2011-03-10 05:11:03 +00:00
|
|
|
class Camlp5 < Formula
|
2015-12-19 06:33:31 +00:00
|
|
|
desc "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-10-12 18:56:21 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "9a2321af5082525322937a17a66fc75d8a7ccb94eb74099ddc33ceb8d1dbad0c" => :el_capitan
|
|
|
|
sha256 "c0edde4ff0551c6e626adc73189959fbdb4342aafe9ae8fe9b41946254c0f322" => :yosemite
|
|
|
|
sha256 "2ee8251c85a5860982063b9c1c3ed554c25410eb884aa35ade2a6a82866998c9" => :mavericks
|
2014-09-27 18:18:56 +00:00
|
|
|
end
|
|
|
|
|
2015-10-05 12:40:09 +00:00
|
|
|
deprecated_option "strict" => "with-strict"
|
|
|
|
option "with-strict", "Compile in strict mode"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
2015-10-05 12:40:09 +00:00
|
|
|
depends_on "ocaml"
|
2010-09-24 12:00:37 +00:00
|
|
|
|
2010-08-29 19:19:57 +00:00
|
|
|
def install
|
2015-10-05 12:40:09 +00:00
|
|
|
if build.with? "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
|