class Saxon < Formula desc "XSLT and XQuery processor" homepage "https://saxon.sourceforge.io" url "https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.8/SaxonHE9-8-0-12J.zip" version "9.8.0.12" sha256 "f48be01705ff91881ea5953982db054f8a2f152dcec9f5e76267a2ee4a1f3ded" bottle :unneeded def install libexec.install Dir["*.jar", "doc", "notices"] bin.write_jar_script libexec/"saxon9he.jar", "saxon" end test do (testpath/"test.xml").write <<~EOS It works! EOS (testpath/"test.xsl").write <<~EOS

EOS assert_equal <<~EOS.chop, shell_output("#{bin}/saxon test.xml test.xsl")

It works!

EOS end end