aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-05-28 21:17:02 -0700
committerAdam Vandenberg2012-05-28 21:17:02 -0700
commitb6f4cafff92c13a3df44468b14b7cc93fb19c598 (patch)
tree9c59d376d806751b605f429e29035db0f4a2cd60 /Library/Formula
parentf87d4919cf0c10ddfbf9d0d1924daa353c41cfd4 (diff)
downloadhomebrew-b6f4cafff92c13a3df44468b14b7cc93fb19c598.tar.bz2
android-sdk: style nits
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/android-sdk.rb19
1 files changed, 8 insertions, 11 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb
index b0c6f5a69..d25de3678 100644
--- a/Library/Formula/android-sdk.rb
+++ b/Library/Formula/android-sdk.rb
@@ -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'
+ # 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]
- # TODO docs and platform-tools
- # See the long comment below for the associated problems
end
skip_clean var_dirs
def install
- mkdir bin
-
mv 'SDK Readme.txt', prefix/'README'
mv 'tools', prefix
@@ -44,21 +42,20 @@ class AndroidSdk < Formula
ADB="#{prefix}/platform-tools/adb"
test -f "$ADB" && exec "$ADB" "$@"
echo Use the \\`android\\' tool to install the \\"Android SDK Platform-tools\\".
- EOS
+ EOS
end
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}
+ export ANDROID_SDK_ROOT=#{prefix}
EOS
end