homebrew-core/Formula/flow.rb
Gabe Levi 4f9bfda310 Flow 0.8.0
Closes Homebrew/homebrew#38348.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-04-03 21:55:27 -04:00

29 lines
889 B
Ruby

require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.8.0.tar.gz"
sha1 "eb3ee22845441a323fe80b8e0e7d7b78ee653904"
head "https://github.com/facebook/flow.git"
bottle do
cellar :any
sha256 "34b42899cefa875566ba8ffdc49b30a23e564169574a661b26f10110153bcd3a" => :yosemite
sha256 "63ecd238a259c6b722d8dee6ff068d6fe371dc92b06bccc530d6301737f7aa78" => :mavericks
sha256 "147169d0dd8a16718b6f7273753107ba34a5deb99c2abaac25e5ba334b49131b" => :mountain_lion
end
depends_on "objective-caml" => :build
def install
system "make"
bin.install "bin/flow"
(share/"flow").install "bin/examples"
end
test do
output = `#{bin}/flow single #{share}/flow/examples/01_HelloWorld`
assert_match(/This type is incompatible with/, output)
assert_match(/Found 1 error/, output)
end
end