ocamlbuild 0.9.2

Since Ocaml 4.03.0, ocamlbuild is no longer part of ocaml,
but is still required for other packages, so it is installed separately

Updated camlp4 to depend on ocamlbuild for compilation
This commit is contained in:
Martin Schumann 2016-05-02 20:35:38 +02:00 committed by Dominyk Tiller
parent b86fabe469
commit 2ff2cf28f8
2 changed files with 21 additions and 0 deletions

View file

@ -14,6 +14,8 @@ class Camlp4 < Formula
end
depends_on "ocaml"
# since Ocaml 4.03.0, ocamlbuild is no longer part of ocaml
depends_on "ocamlbuild"
def install
# this build fails if jobs are parallelized

19
Formula/ocamlbuild.rb Normal file
View file

@ -0,0 +1,19 @@
class Ocamlbuild < Formula
desc "Generic build tool for OCaml"
homepage "https://github.com/ocaml/ocamlbuild"
url "https://github.com/ocaml/ocamlbuild/archive/0.9.2.tar.gz"
sha256 "257a3961da1aa47deb3de8da238ebe1daf13a73efef2228f97a064a90f91c6bc"
head "https://github.com/ocaml/ocamlbuild.git"
depends_on "ocaml"
def install
system "make", "configure", "OCAMLBUILD_BINDIR=#{bin}", "OCAMLBUILD_LIBDIR=#{lib}"
system "make"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/ocamlbuild --version")
end
end