26 lines
822 B
Ruby
26 lines
822 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.1-110/xmlcalabash-1.5.1-110.zip"
|
|
sha256 "d4b7220b4da226ede127dc2db79bb497beb0b3b50d390bbec6d4733cb27f2af5"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "56ae5e3ee65b6937a1cfdc4cfcbe92bfb94af98715dd33f297276e92b3f2a23f"
|
|
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
|