diff options
| author | Ildar Karimov | 2013-06-07 13:12:53 +0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-10 11:06:20 -0700 |
| commit | 33258e5d4d2b8dbb22235ec416e283833f027b36 (patch) | |
| tree | 528da7a9d54d3163f71bb052c4861437a6b6212d /Library/Formula | |
| parent | 0c41850910d7a0576ed5419f9e547dc6b70a773d (diff) | |
| download | homebrew-33258e5d4d2b8dbb22235ec416e283833f027b36.tar.bz2 | |
android-sdk: fix tool installs
aapt aidl dexdump dx llvm-rs-cc was moved to build-tools in r22.
Closes #20325.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/android-sdk.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb index 4f6adc015..b6e976c47 100644 --- a/Library/Formula/android-sdk.rb +++ b/Library/Formula/android-sdk.rb @@ -43,7 +43,7 @@ class AndroidSdk < Formula dst.make_relative_symlink src end - %w[aapt adb aidl dexdump dx fastboot llvm-rs-cc].each do |platform_tool| + %w[adb fastboot].each do |platform_tool| (bin/platform_tool).write <<-EOS.undent #!/bin/sh PLATFORM_TOOL="#{prefix}/platform-tools/#{platform_tool}" @@ -52,6 +52,15 @@ class AndroidSdk < Formula EOS end + %w[aapt aidl dexdump dx llvm-rs-cc].each do |build_tool| + (bin/build_tool).write <<-EOS.undent + #!/bin/sh + BUILD_TOOL="#{prefix}/build-tools/17.0.0/#{build_tool}" + test -f "$BUILD_TOOL" && exec "$BUILD_TOOL" "$@" + echo Use the \\`android\\' tool to install the \\"Android SDK Build-tools\\". + EOS + end + AdbBashCompletion.new.brew do bash_completion.install 'adb.bash' => 'adb-completion.bash' end |
