blob: 4a46db9159a76a4dbac3c4bfa8d27e0547254e2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class Calabash < Formula
homepage 'http://xmlcalabash.com'
url 'http://xmlcalabash.com/download/calabash-1.0.15-95.zip'
sha1 'd1cb6f0f26780a504e1f6890a6a3e9261fc28c81'
head 'https://github.com/ndw/xmlcalabash1.git'
depends_on 'saxon'
def install
libexec.install Dir["*"]
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
|