homebrew-core/Formula/proguard.rb

24 lines
750 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.2/proguard5.2.1.tar.gz"
sha256 "162fb2816212c6a7a195884a01ff826920919e97f57914a5b00bdf7641fc00f6"
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