class Yeti < Formula desc "ML-style functional programming language that runs on the JVM" homepage "https://mth.github.io/yeti/" url "https://github.com/mth/yeti/archive/v0.9.9.1.tar.gz" sha256 "c552018993570724313fc0624d225e266cd95e993d121850b34aa706f04e3dfe" head "https://github.com/mth/yeti.git" bottle do cellar :any_skip_relocation sha256 "268781d28a766896e5ef40dc5c364b8a40617e6c28a3c96b693eba473c56e660" => :el_capitan sha256 "a1ef95834d3631f7d04e18fd90786b0c8b0f4e492abe6f665a64d0d31ee768c5" => :yosemite sha256 "9dd1a7662b45c454c47075ee029c554bf2655423376bd373cde6e15e716e7677" => :mavericks end depends_on :ant => :build depends_on :java => "1.8" 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