class Calabash < Formula desc "XProc (XML Pipeline Language) implementation" homepage "http://xmlcalabash.com" url "https://github.com/ndw/xmlcalabash1/releases/download/1.1.14-97/xmlcalabash-1.1.14-97.zip" sha256 "859afbc7217fd6499ac15fd9ffbd03826b44b3c8aec8228d16e6c301d9e27449" bottle :unneeded depends_on "saxon" def install libexec.install Dir["*"] bin.write_jar_script libexec/"xmlcalabash-#{version}.jar", "calabash", "-Xmx1024m" end test do # This small XML pipeline (*.xpl) that comes with Calabash # is basically its equivalent "Hello World" program. system "#{bin}/calabash", "#{libexec}/xpl/pipe.xpl" end end