class Saxon < Formula desc "XSLT and XQuery processor" homepage "https://saxon.sourceforge.io" url "https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.9/SaxonHE9-9-0-1J.zip" version "9.9.0.1" sha256 "c068a69b701c21238c28712aba6e3467e37c964ebe219e5d7789e6a3e269ddc6" 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