diff options
| author | Mike McQuaid | 2014-10-28 08:09:16 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-28 08:26:20 +0000 |
| commit | 14e4cb4c6f2714554962e31a9a8ebfc307d2260b (patch) | |
| tree | 388b5865fd4c02ca595ac450fb97a3bf40909d20 /Library | |
| parent | 263c79c17ed9bd23ed3d0c3a99a5a6c75b7296d3 (diff) | |
| download | homebrew-14e4cb4c6f2714554962e31a9a8ebfc307d2260b.tar.bz2 | |
camlp4: general cleanup.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/camlp4.rb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/Library/Formula/camlp4.rb b/Library/Formula/camlp4.rb index 34341a97c..35aacf851 100644 --- a/Library/Formula/camlp4.rb +++ b/Library/Formula/camlp4.rb @@ -1,7 +1,12 @@ require "formula" class Camlp4 < Formula - version '4.02.1+1' + homepage "https://github.com/ocaml/camlp4" + url "https://github.com/ocaml/camlp4/archive/4.02.1+1.tar.gz" + sha1 "7d0f879517887299167f1c3eefa8f4d266d69183" + version "4.02.1+1" + head "https://github.com/ocaml/camlp4.git" + bottle do cellar :any sha1 "0eb13f59de6a620e7663f3e865d0fae8d211abfa" => :yosemite @@ -9,11 +14,6 @@ class Camlp4 < Formula sha1 "c0c7378b99240a65cec22fa505cc4711413e03ec" => :mountain_lion end - homepage "https://github.com/ocaml/camlp4" - url "https://github.com/ocaml/camlp4/archive/4.02.1+1.tar.gz" - sha1 "7d0f879517887299167f1c3eefa8f4d266d69183" - head "https://github.com/ocaml/camlp4.git" - depends_on "objective-caml" def install @@ -23,14 +23,15 @@ class Camlp4 < Formula "--libdir=#{HOMEBREW_PREFIX}/lib/ocaml", "--pkgdir=#{HOMEBREW_PREFIX}/lib/ocaml/camlp4" system "make", "all" - system "make", "install", "LIBDIR=#{prefix}/lib/ocaml", - "PKGDIR=#{prefix}/lib/ocaml/camlp4" + system "make", "install", "LIBDIR=#{lib}/ocaml", + "PKGDIR=#{lib}/lib/ocaml/camlp4" end test do - (testpath/"foo.ml").write("type t = Homebrew | Rocks") - system "#{bin}/camlp4", "-parser", "OCaml", "-printer", "OCamlr", "foo.ml", "-o", (testpath/"foo.ml.out") - assert_equal "type t = [ Homebrew | Rocks ];", (testpath/"foo.ml.out").read.strip + (testpath/"foo.ml").write "type t = Homebrew | Rocks" + system "#{bin}/camlp4", "-parser", "OCaml", "-printer", "OCamlr", + "foo.ml", "-o", testpath/"foo.ml.out" + assert_equal "type t = [ Homebrew | Rocks ];", + (testpath/"foo.ml.out").read.strip end - end |
