diff options
| author | tstevens | 2010-01-05 19:01:19 -0500 |
|---|---|---|
| committer | Max Howell | 2010-01-19 12:46:11 +0000 |
| commit | 10fde58bcb7df0f0960b863b7bf10aa7af360421 (patch) | |
| tree | 96da1e7420d9e278113455cb9f86de39fcccc2d5 /Library | |
| parent | 26a241f21ebec13d65b515e29403a15df76a262f (diff) | |
| download | homebrew-10fde58bcb7df0f0960b863b7bf10aa7af360421.tar.bz2 | |
Add Android SDK formula
Signed-off-by: Max Howell <max@methylblue.com>
Added an alias. Cleaned it up a bit.
Also removed the chmod 0777, '..' line as it made no sense and had no comment to justify it. Always comment weird stuff!
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/android-sdk.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb new file mode 100644 index 000000000..6f7745ffe --- /dev/null +++ b/Library/Formula/android-sdk.rb @@ -0,0 +1,33 @@ +require 'formula' + +class AndroidSdk <Formula + url 'http://dl.google.com/android/android-sdk_r04-mac_86.zip' + homepage 'http://developer.android.com/index.html' + md5 'b08512765aa9b0369bb9b8fecdf763e3' + version 'r4' + + skip_clean 'add-ons' + skip_clean 'platforms' + skip_clean 'temp' + + aka :android + + def install + mkdir %w[temp docs] << bin + + mv 'SDK Readme.txt', 'README' + prefix.install Dir['*'] + + %w[adb android apkbuilder ddms dmtracedump draw9patch emulator + hierarchyviewer hprof-conv layoutopt mksdcard traceview + zipalign].each do |tool| + (bin+tool).make_link(prefix+'tools'+tool) + end + end + + def caveats; "\ +We agreed to the Android SDK License Agreement for you by downloading the SDK. +If this is unacceptable you should uninstall. +You can read the license at: http://developer.android.com/sdk/terms.html" + end +end |
