From 84be1ae3efaf77ccafcf7baefe26ee60a5092943 Mon Sep 17 00:00:00 2001 From: Cheng LI Date: Wed, 22 Jan 2014 16:48:25 -0800 Subject: android-platform-tools 19.0.1 (new formula) Install the adb and fastboot binaries without the Android SDK. Closes #26080. Signed-off-by: Mike McQuaid --- Library/Formula/android-platform-tools.rb | 17 +++++++++++++++++ Library/Formula/android-sdk.rb | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 Library/Formula/android-platform-tools.rb (limited to 'Library') diff --git a/Library/Formula/android-platform-tools.rb b/Library/Formula/android-platform-tools.rb new file mode 100644 index 000000000..f6bd2e369 --- /dev/null +++ b/Library/Formula/android-platform-tools.rb @@ -0,0 +1,17 @@ +require "formula" + +class AndroidPlatformTools < Formula + homepage "http://developer.android.com/sdk" + # the url is from: + # http://dl-ssl.google.com/android/repository/repository-8.xml + url "http://dl-ssl.google.com/android/repository/platform-tools_r19.0.1-macosx.zip" + version '19.0.1' + sha1 "340a497e4199d076ea93d4ee0e7a50858344d176" + + conflicts_with 'android-sdk', + :because => "the Android Platform-tools are part of the Android SDK" + + def install + bin.install "adb", "fastboot" + end +end diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb index 3ac037960..b0fc15d15 100644 --- a/Library/Formula/android-sdk.rb +++ b/Library/Formula/android-sdk.rb @@ -19,6 +19,9 @@ class AndroidSdk < Formula skip_clean var_dirs + conflicts_with 'android-platform-tools', + :because => "the Platform-tools are be installed as part of the SDK." + def install prefix.install 'tools', 'SDK Readme.txt' => 'README' -- cgit v1.2.3