homebrew-core/Formula/xmlsectool.rb

22 lines
664 B
Ruby

class Xmlsectool < Formula
desc "Check schema validity and signature of an XML document."
homepage "https://wiki.shibboleth.net/confluence/display/XSTJ2/xmlsectool+V2+Home"
url "https://shibboleth.net/downloads/tools/xmlsectool/latest/xmlsectool-2.0.0-bin.zip"
sha256 "83ea1e977d947dd5f2f5600a3280bc5d372a4913f0dbce1ddf2c0ca1c869ca57"
bottle :unneeded
depends_on :java => "1.7+"
def install
prefix.install "doc/LICENSE.TXT"
rm_rf "doc"
libexec.install Dir["*"]
(bin/"xmlsectool").write_env_script "#{libexec}/xmlsectool.sh", Language::Java.java_home_env
end
test do
system "#{bin}/xmlsectool", "--listBlacklist"
end
end