class Calabash < Formula desc "XProc (XML Pipeline Language) implementation" homepage "http://xmlcalabash.com" url "https://github.com/ndw/xmlcalabash1/releases/download/1.1.20-98/xmlcalabash-1.1.20-98.zip" sha256 "1c73a45366b56c67b4f84a99eb5728be87b75f85602c8e244ad281d47a94ea4b" 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