homebrew-core/Formula/proguard.rb
ilovezfs 23ec1195dd
proguard 5.3.3
Closes #20808.

Signed-off-by: William Woodruff <william@tuffbizz.com>
2017-11-18 17:42:34 -05:00

23 lines
743 B
Ruby

class Proguard < Formula
desc "Java class file shrinker, optimizer, and obfuscator"
homepage "https://proguard.sourceforge.io/"
url "https://downloads.sourceforge.net/project/proguard/proguard/5.3/proguard5.3.3.tar.gz"
sha256 "95bf9580107f00d0e26f01026dcfe9e7a772e5449488b03ba832836c3760b3af"
bottle :unneeded
def install
libexec.install "lib/proguard.jar"
libexec.install "lib/proguardgui.jar"
bin.write_jar_script libexec/"proguard.jar", "proguard"
bin.write_jar_script libexec/"proguardgui.jar", "proguardgui"
end
test do
expect = <<~EOS
ProGuard, version #{version}
Usage: java proguard.ProGuard [options ...]
EOS
assert_equal expect, shell_output("#{bin}/proguard", 1)
end
end