From d7cc778bce5425b823b75451f39c09c83851b37f Mon Sep 17 00:00:00 2001 From: Leonardo YongUk Kim Date: Wed, 24 Dec 2014 17:14:51 +0900 Subject: [PATCH] fb-adb 1.2.0 (new formula) fb-adb is a tool for interacting with Android systems. It does much of what adb does, but with better remote shell support and, hopefully, fewer bugs. I had submitted a pull request Homebrew/homebrew#31555. Because fb-adb didn't have stable releases, It has been closed. https://github.com/Homebrew/homebrew/pull/31555 I had submitted this PR on homebrew-headonly. https://github.com/Homebrew/homebrew-headonly/pull/58 Now fb-adb has a first tagged version, fb-adb 1.2.0. So I just made another pull request for this version of fb-adb. https://github.com/facebook/fb-adb/issues/4 Closes Homebrew/homebrew#35231. Signed-off-by: Mike McQuaid --- Formula/fb-adb.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Formula/fb-adb.rb diff --git a/Formula/fb-adb.rb b/Formula/fb-adb.rb new file mode 100644 index 0000000000..92574e625b --- /dev/null +++ b/Formula/fb-adb.rb @@ -0,0 +1,33 @@ +class FbAdb < Formula + homepage "https://github.com/facebook/fb-adb" + url "https://github.com/facebook/fb-adb/archive/1.2.0.tar.gz" + sha1 "a86939f72c8c52c2fc7bc2ec756f179863076622" + + depends_on "android-ndk" => :build + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "pkg-config" => :build + depends_on "android-sdk" + + def install + ENV["ANDROID_NDK"] = Formula["android-ndk"].opt_prefix + + system "./autogen.sh" + + mkdir "build" do + system "../configure", "--prefix=#{prefix}" + system "make" + system "make", "install" + end + end + + def post_install + system "echo", "Y", "|", "android", "update", "sdk", "--no-ui", "--filter", "platform-tools" + end + + test do + system "#{bin}/fb-adb", "devices" + system "#{bin}/fb-adb", "kill-server" + system "#{bin}/fb-adb", "start-server" + end +end