2013-05-16 08:17:40 +00:00
|
|
|
class Dex2jar < Formula
|
2015-10-05 13:15:35 +00:00
|
|
|
desc "Tools to work with Android .dex and Java .class files"
|
2015-04-21 06:23:21 +00:00
|
|
|
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"
|
2013-05-16 08:17:40 +00:00
|
|
|
|
2015-10-22 13:16:24 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2013-05-16 08:17:40 +00:00
|
|
|
def install
|
|
|
|
# Remove Windows scripts
|
2015-04-21 06:23:21 +00:00
|
|
|
rm_rf Dir["*.bat"]
|
2013-05-16 08:17:40 +00:00
|
|
|
|
|
|
|
# Install files
|
|
|
|
prefix.install_metafiles
|
2015-04-21 06:23:21 +00:00
|
|
|
chmod 0755, Dir["*"]
|
|
|
|
libexec.install Dir["*"]
|
2013-05-16 08:17:40 +00:00
|
|
|
|
2014-05-31 15:00:24 +00:00
|
|
|
Dir.glob("#{libexec}/*.sh") do |script|
|
2015-04-21 06:23:21 +00:00
|
|
|
bin.install_symlink script => File.basename(script, ".sh")
|
2013-05-16 08:17:40 +00:00
|
|
|
end
|
|
|
|
end
|
2015-04-21 06:23:21 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"d2j-dex2jar", "--help"
|
|
|
|
end
|
2013-05-16 08:17:40 +00:00
|
|
|
end
|