android-sdk: style nits
This commit is contained in:
parent
74b7b1f2b4
commit
7a89627731
1 changed files with 8 additions and 11 deletions
|
@ -1,22 +1,20 @@
|
|||
require 'formula'
|
||||
|
||||
class AndroidSdk < Formula
|
||||
url 'http://dl.google.com/android/android-sdk_r18-macosx.zip'
|
||||
homepage 'http://developer.android.com/index.html'
|
||||
md5 '8328e8a5531c9d6f6f1a0261cb97af36'
|
||||
url 'http://dl.google.com/android/android-sdk_r18-macosx.zip'
|
||||
version 'r18'
|
||||
md5 '8328e8a5531c9d6f6f1a0261cb97af36'
|
||||
|
||||
def self.var_dirs
|
||||
%w[platforms samples temp add-ons sources system-images extras]
|
||||
# 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
|
||||
|
||||
def install
|
||||
mkdir bin
|
||||
|
||||
mv 'SDK Readme.txt', prefix/'README'
|
||||
mv 'tools', prefix
|
||||
|
||||
|
@ -50,14 +48,13 @@ class AndroidSdk < Formula
|
|||
def caveats; <<-EOS.undent
|
||||
Now run the `android' tool to install the actual SDK stuff.
|
||||
|
||||
NOTE you should tell Eclipse, IntelliJ etc. to use the Android-SDK found
|
||||
here: #{prefix}
|
||||
The Android-SDK location for IDEs such as Eclipse, IntelliJ etc is:
|
||||
#{prefix}
|
||||
|
||||
You will have to install the platform-tools and docs EVERY time this formula
|
||||
updates. If you want to try and fix this then see the comment in this formula.
|
||||
|
||||
You may need to add the following to your .bashrc:
|
||||
|
||||
export ANDROID_SDK_ROOT=#{prefix}
|
||||
EOS
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue