Permalink
Browse files

redex 1.1.0 (new formula)

Closes #5948.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
  • Loading branch information...
kageiit authored and dunn committed Sep 25, 2016
1 parent 2dbe508 commit 29da65572608325eea8b05d7812eaa25d02d434b
Showing with 34 additions and 0 deletions.
  1. +34 −0 Formula/redex.rb
View
@@ -0,0 +1,34 @@
class Redex < Formula
desc "Bytecode optimizer for Android apps"
homepage "http://fbredex.com"
url "https://github.com/facebook/redex/archive/v1.1.0.tar.gz"
sha256 "af2c81db4e0346e1aeef570e105c60ebfea730d62fd928d996f884abda955990"
head "https://github.com/facebook/redex.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libevent" => :build
depends_on "libtool" => :build
depends_on "boost"
depends_on "python3"
depends_on "jsoncpp"
resource "test_apk" do
url "https://raw.githubusercontent.com/facebook/redex/master/test/instr/redex-test.apk"
sha256 "7851cf2a15230ea6ff076639c2273bc4ca4c3d81917d2e13c05edcc4d537cc04"
end
def install
system "autoreconf", "-ivf"
system "./configure", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
resource("test_apk").stage do
system "#{bin}/redex", "redex-test.apk", "-o", "redex-test-out.apk"
end
end
end

0 comments on commit 29da655

Please sign in to comment.