homebrew-core/Formula/proguard.rb
ilovezfs 47662e3a41 proguard 5.3
Closes #5063.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-09-21 22:56:09 -07:00

23 lines
748 B
Ruby

class Proguard < Formula
desc "Java class file shrinker, optimizer, and obfuscator"
homepage "http://proguard.sourceforge.net/"
url "https://downloads.sourceforge.net/project/proguard/proguard/5.3/proguard5.3.tar.gz"
sha256 "8f185c343dcc4504b3c496bdbf870feba3523abe7cec060b44bbacd1fc2da955"
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.undent
ProGuard, version #{version}
Usage: java proguard.ProGuard [options ...]
EOS
assert_equal expect, shell_output("#{bin}/proguard", 1)
end
end