2011-10-06 19:14:31 +00:00
|
|
|
class Calabash < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "An XProc (XML Pipeline Language) implementation"
|
2015-02-05 23:27:13 +00:00
|
|
|
homepage "http://xmlcalabash.com"
|
2015-04-26 22:08:21 +00:00
|
|
|
url "https://github.com/ndw/xmlcalabash1/releases/download/1.1.0-95/xmlcalabash-1.1.0-95.zip"
|
|
|
|
sha256 "d75a8699ec496fb854761d8e375015732ac51047aad5d7bec57ea3a5349feae7"
|
2011-10-06 19:14:31 +00:00
|
|
|
|
2015-02-05 23:27:13 +00:00
|
|
|
depends_on "saxon"
|
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
|