homebrew-core/Formula/flow.rb
Gabe Levi a9f9e4e22e flow 0.9.1
Closes Homebrew/homebrew#38722.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-17 14:10:00 +08:00

29 lines
889 B
Ruby

require "formula"
class Flow < Formula
homepage "http://flowtype.org/"
url "https://github.com/facebook/flow/archive/v0.9.1.tar.gz"
sha1 "e76aa9eccae113e55dfe017428bda8d7fc3cef46"
head "https://github.com/facebook/flow.git"
bottle do
cellar :any
sha256 "b1f598969a4a76cd5166e8834a730d92b51fe3dce54de7c906cfe70705a87544" => :yosemite
sha256 "6f3467020fe682dfa52b8f4b3d49e001e8fdca60b10ab70c05cd6fed7e73fb0f" => :mavericks
sha256 "c3809cc61d4f5601408d282746a7445cdcbeaafc60e4332e900e3228e39fd211" => :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