2011-10-06 19:14:31 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Calabash < Formula
|
|
|
|
homepage 'http://xmlcalabash.com'
|
2013-11-19 23:06:44 +00:00
|
|
|
url 'http://xmlcalabash.com/download/calabash-1.0.15-95.zip'
|
|
|
|
sha1 'd1cb6f0f26780a504e1f6890a6a3e9261fc28c81'
|
2012-08-07 18:20:52 +00:00
|
|
|
|
2011-10-06 19:14:31 +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'
|
2011-10-06 19:14:31 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2011-10-06 19:14:31 +00:00
|
|
|
# This small XML pipeline (*.xpl) that comes with Calabash
|
|
|
|
# is basically its equivalent "Hello World" program.
|
2012-05-06 05:29:57 +00:00
|
|
|
system "#{bin}/calabash", "#{libexec}/xpl/pipe.xpl"
|
2011-10-06 19:14:31 +00:00
|
|
|
end
|
|
|
|
end
|