Skip to content

Commit

Permalink
Test linking against camlp4 (fix Homebrew#39399)
Browse files Browse the repository at this point in the history
And bump revision to force bottles being rebuilt for ocaml 4.07.1.
  • Loading branch information
Blaisorblade committed May 2, 2019
1 parent 65a45a9 commit c40e083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/camlp4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Camlp4 < Formula
url "https://github.com/ocaml/camlp4/archive/4.07+1.tar.gz"
version "4.07+1"
sha256 "ecdb8963063f41b387412317685f79823a26b3f53744f0472058991876877090"
revision 1
head "https://github.com/ocaml/camlp4.git", :branch => "trunk"

bottle do
Expand Down Expand Up @@ -35,5 +36,8 @@ def install
"foo.ml", "-o", testpath/"foo.ml.out"
assert_equal "type t = [ Homebrew | Rocks ];",
(testpath/"foo.ml.out").read.strip

(testpath/"try_camlp4.ml").write "open Camlp4"
system "ocamlc", "-c", "-I", "/usr/local/lib/ocaml/camlp4", "-o", testpath/"try_camlp4.cmo", testpath/"try_camlp4.ml"
end
end

0 comments on commit c40e083

Please sign in to comment.