2011-10-06 19:14:31 +00:00
|
|
|
class Calabash < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "XProc (XML Pipeline Language) implementation"
|
2015-02-05 23:27:13 +00:00
|
|
|
homepage "http://xmlcalabash.com"
|
2015-06-22 14:41:30 +00:00
|
|
|
url "https://github.com/ndw/xmlcalabash1/releases/download/1.1.4-96/xmlcalabash-1.1.4-96.zip"
|
|
|
|
sha256 "a68b729c1cf392433534c207e9fe1002deca42282ed409ed93fbeb0e13b7583c"
|
2011-10-06 19:14:31 +00:00
|
|
|
|
2015-10-22 13:10:39 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-02-05 23:27:13 +00:00
|
|
|
depends_on "saxon"
|
2015-10-22 13:10:39 +00:00
|
|
|
|
2011-10-06 19:14:31 +00:00
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
2015-04-26 22:08:21 +00:00
|
|
|
bin.write_jar_script libexec/"xmlcalabash-#{version}.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
|