homebrew-core/Formula/calabash.rb

23 lines
585 B
Ruby
Raw Normal View History

require 'formula'
class Calabash < Formula
homepage 'http://xmlcalabash.com'
url 'http://xmlcalabash.com/download/calabash-1.0.3-94.zip'
sha1 '4f8329f2fc9cac1b03f161219a1a1b9987ac7ecf'
2012-08-07 18:20:52 +00:00
head 'https://github.com/ndw/xmlcalabash1.git'
depends_on 'saxon'
def install
libexec.install Dir["*"]
2012-08-07 18:20:52 +00:00
bin.write_jar_script libexec/'calabash.jar', 'calabash', '-Xmx1024m'
end
def test
# 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