diff options
| author | Zearin | 2011-10-06 15:14:31 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-01-23 14:42:02 -0600 |
| commit | 5f2245804752069f7db7beb855931678d671f0a6 (patch) | |
| tree | 5c61b5484ffbe2bb0095885fcd22f6c9e895a806 /Library/Formula | |
| parent | 15f4bcbc6944ba558c980d354fd9402d54c99adf (diff) | |
| download | homebrew-5f2245804752069f7db7beb855931678d671f0a6.tar.bz2 | |
New formula: Calabash
Closes #9653.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/calabash.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/calabash.rb b/Library/Formula/calabash.rb new file mode 100644 index 000000000..591a716d8 --- /dev/null +++ b/Library/Formula/calabash.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Calabash < Formula + homepage 'http://xmlcalabash.com' + url 'http://xmlcalabash.com/download/calabash-1.0.0-94.zip' + md5 '2adcfd89f8ed17a5be5b22002b35350a' + head 'https://github.com/ndw/xmlcalabash1.git' + + depends_on 'saxon' + + def install + libexec.install Dir["*"] + (bin+'calabash').write shim_script('calabash') + end + + def shim_script target + <<-EOS.undent + #!/usr/bin/env bash + java -Xmx1024m -jar #{libexec}/calabash.jar "$@" + EOS + end + + def test + # This small XML pipeline (*.xpl) that comes with Calabash + # is basically its equivalent "Hello World" program. + system "calabash #{self.prefix}/libexec/xpl/pipe.xpl" + end +end |
