Skip to content

Commit

Permalink
xmlsectool: depend on openjdk
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus authored and bayandin committed Feb 21, 2020
1 parent 9afd4c0 commit fad06da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/xmlsectool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ class Xmlsectool < Formula
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"
revision 1

bottle :unneeded

depends_on :java => "1.7+"
depends_on "openjdk"

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
(bin/"xmlsectool").write_env_script "#{libexec}/xmlsectool.sh", :JAVA_HOME => Formula["openjdk"].opt_prefix
end

test do
Expand Down

0 comments on commit fad06da

Please sign in to comment.