aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLeonardo YongUk Kim2014-12-24 17:14:51 +0900
committerMike McQuaid2015-02-02 18:22:24 +0000
commit2f9d15464f09c00830f1a703fbaf2109d1deaddc (patch)
tree8c35df8c37831de18ea35db9425671fe6c0563bc /Library
parent3fbd645b69c7e3102ae76882ecfabffc6defa13f (diff)
downloadhomebrew-2f9d15464f09c00830f1a703fbaf2109d1deaddc.tar.bz2
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 #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 #35231. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fb-adb.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/fb-adb.rb b/Library/Formula/fb-adb.rb
new file mode 100644
index 000000000..92574e625
--- /dev/null
+++ b/Library/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