homebrew-core/Formula/calabash.rb

26 lines
849 B
Ruby

class Calabash < Formula
desc "XProc (XML Pipeline Language) implementation"
homepage "https://xmlcalabash.com/"
url "https://github.com/ndw/xmlcalabash1/releases/download/1.5.3-110/xmlcalabash-1.5.3-110.zip"
sha256 "e599484bc95b1dc2086a04c4be24e15da9eada8139b3e6a35d3636e2a8be18d7"
license any_of: ["GPL-2.0-only", "CDDL-1.0"]
bottle do
sha256 cellar: :any_skip_relocation, all: "a94df53dffca513f8708a4c8ece8fc520eb431a30c15af964d46f7385d2cf4b5"
end
depends_on "openjdk"
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