2014-05-25 14:52:05 +00:00
|
|
|
require "formula"
|
2010-08-29 19:19:57 +00:00
|
|
|
|
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/"
|
2014-09-27 17:52:33 +00:00
|
|
|
url "http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.12.tgz"
|
|
|
|
sha1 "d78d89dbd33725d7589181c38cc67180502da2f8"
|
2014-10-27 19:34:44 +00:00
|
|
|
revision 2
|
2010-08-29 19:19:57 +00:00
|
|
|
|
2014-09-27 18:18:56 +00:00
|
|
|
bottle do
|
2014-10-27 21:10:33 +00:00
|
|
|
sha1 "a59c46767de8e867733609b08630953c57523fb3" => :yosemite
|
|
|
|
sha1 "02c88c2b521f13d7733630f19c2fc145e6cb2d97" => :mavericks
|
|
|
|
sha1 "73d8bd3f7848902360e171b425a8e807a512d449" => :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
|