21 lines
665 B
Ruby
21 lines
665 B
Ruby
class Calabash < Formula
|
|
desc "XProc (XML Pipeline Language) implementation"
|
|
homepage "http://xmlcalabash.com"
|
|
url "https://github.com/ndw/xmlcalabash1/releases/download/1.1.16-97/xmlcalabash-1.1.16-97.zip"
|
|
sha256 "f0713bae19bf3289471c0d722618298a1a902fbe01e8112238631c7e669e563e"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "saxon"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
bin.write_jar_script libexec/"xmlcalabash-#{version}.jar", "calabash", "-Xmx1024m"
|
|
end
|
|
|
|
test do
|
|
# 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
|