diff options
| author | Alex Dunn | 2015-04-20 23:23:21 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-21 10:40:36 +0100 |
| commit | 4727e2d84a07511c98bc5fe14e965745d5027e82 (patch) | |
| tree | cf7d6ddf9a10f17fe249692f4634725c7d0e1ee6 | |
| parent | 61698b679fed9dd6986f9d0132ed598f1394ad56 (diff) | |
| download | homebrew-4727e2d84a07511c98bc5fe14e965745d5027e82.tar.bz2 | |
dex2jar 2.0
Closes #38886.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/dex2jar.rb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Library/Formula/dex2jar.rb b/Library/Formula/dex2jar.rb index edb765ee1..e8f6d82af 100644 --- a/Library/Formula/dex2jar.rb +++ b/Library/Formula/dex2jar.rb @@ -1,20 +1,24 @@ -require 'formula' - class Dex2jar < Formula - homepage 'https://code.google.com/p/dex2jar/' - url 'https://dex2jar.googlecode.com/files/dex2jar-0.0.9.15.zip' - sha1 'cc9366836d576ce22a18de8f214368636db9fcba' + homepage "https://github.com/pxb1988/dex2jar" + url "https://downloads.sourceforge.net/project/dex2jar/dex2jar-2.0.zip" + mirror "https://bitbucket.org/pxb1988/dex2jar/downloads/dex2jar-2.0.zip" + sha256 "7907eb4d6e9280b6e17ddce7ee0507eae2ef161ee29f70a10dbc6944fdca75bc" def install # Remove Windows scripts - rm_rf Dir['*.bat'] + rm_rf Dir["*.bat"] # Install files prefix.install_metafiles - libexec.install Dir['*'] + chmod 0755, Dir["*"] + libexec.install Dir["*"] Dir.glob("#{libexec}/*.sh") do |script| - bin.install_symlink script => File.basename(script, '.sh') + bin.install_symlink script => File.basename(script, ".sh") end end + + test do + system bin/"d2j-dex2jar", "--help" + end end |
