blob: 2665eb1d7cee3eff88948c7218a2ba9f7d9c5903 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | class Yeti < Formula
  homepage "https://mth.github.io/yeti/"
  url "https://github.com/mth/yeti/archive/v0.9.9.tar.gz"
  sha1 "d4b3fee9e9e1c117f1a73b147695a24a217c2658"
  head "https://github.com/mth/yeti.git"
  depends_on :ant => :build
  depends_on :java => "1.7"
  def install
    system "ant", "jar"
    libexec.install "yeti.jar"
    bin.write_jar_script libexec/"yeti.jar", "yeti", "-server"
  end
  test do
    assert_equal "3\n", shell_output("#{bin}/yeti -e 'do x: x+1 done 2'")
  end
end
 |