cfr-decompiler 0.102

Closes Homebrew/homebrew#42677.
master
Alex Dunn 2015-08-08 21:16:34 -07:00
parent b37bee0b5a
commit 4f016d6a88
1 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
class CfrDecompiler < Formula
desc "Yet Another Java Decompiler."
homepage "http://www.benf.org/other/cfr/"
url "http://www.benf.org/other/cfr/cfr_0_101.jar"
sha256 "90e166325ca4443a65663a75876c639cace9a29558713878c6a2b6eb211f947f"
url "http://www.benf.org/other/cfr/cfr_0_102.jar"
sha256 "b8bf5b3071b7754fb0117f321b600f0d7f548cd6fe25319dd993d4d9845d4578"
depends_on :java => "1.6+"
def install
jar_version = version.to_s.gsub(".", "_")
jar_version = version.to_s.tr(".", "_")
libexec.install "cfr_#{jar_version}.jar"
bin.write_jar_script libexec/"cfr_#{jar_version}.jar", "cfr-decompiler"
end
@ -28,6 +28,6 @@ class CfrDecompiler < Formula
(testpath/"T.java").write fixture
system "javac", "T.java"
output = pipe_output("#{bin}/cfr-decompiler T.class")
assert output.include?(fixture), "Different output than expected"
assert_match fixture, output
end
end