diff options
| author | Adam Vandenberg | 2014-02-23 18:11:49 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-23 21:03:47 -0800 |
| commit | 05c83676f43938e1bf045d51643b58eeb673f506 (patch) | |
| tree | 7f06a02e9b25f1fa4ae8d77d51df168319b1ffc0 /Library | |
| parent | c3fc01ce604a9a5e9650af09ebab75b42e2302e5 (diff) | |
| download | homebrew-05c83676f43938e1bf045d51643b58eeb673f506.tar.bz2 | |
android-sdk: no need to skip cleaning
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/android-sdk.rb | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb index b0fc15d15..e475d9c28 100644 --- a/Library/Formula/android-sdk.rb +++ b/Library/Formula/android-sdk.rb @@ -6,22 +6,14 @@ class AndroidSdk < Formula version '22.3' sha1 '547ea51c4aa61d623a4823d0b635d3b66b6c9329' + conflicts_with 'android-platform-tools', + :because => "the Platform-tools are be installed as part of the SDK." + resource 'completion' do url 'https://raw.github.com/CyanogenMod/android_sdk/3bf0a01ef66a9b99149ba3faaf34a1362581dd01/bash_completion/adb.bash' sha1 '8e7dad45b8c98c359516d4a818a9090125bc6f7a' end - # TODO docs and platform-tools - # See the long comment below for the associated problems - def self.var_dirs - %w[platforms samples temp add-ons sources system-images extras] - end - - 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' @@ -37,7 +29,7 @@ class AndroidSdk < Formula # this is data that should be preserved across upgrades, but the Android # SDK isn't too smart, so we still have to symlink it back into its tree. - AndroidSdk.var_dirs.each do |d| + %w[platforms samples temp add-ons sources system-images extras].each do |d| dst = prefix/d src = var/'lib/android-sdk'/d src.mkpath unless src.directory? |
