homebrew-core/Formula/camlp5.rb

33 lines
858 B
Ruby
Raw Normal View History

2014-05-25 14:52:05 +00:00
require "formula"
2011-03-10 05:11:03 +00:00
class Camlp5 < Formula
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"
revision 2
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"
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