homebrew-core/Formula/android-ndk.rb
Nibbles 2bits af90a317c6 android-ndk: link binaries to keg bin
android-ndk has three binaries that are meant to live at the top
of it's keg tree, not in its bin. This commit creates the bin path
and symlinks those three binaries into its bin so that they will
be available to the user after install.

Fixes Homebrew/homebrew#7514.
Closes Homebrew/homebrew#7752.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-22 20:40:22 -05:00

31 lines
818 B
Ruby

require 'formula'
class AndroidNdk < Formula
url 'http://dl.google.com/android/ndk/android-ndk-r6-darwin-x86.tar.bz2'
homepage 'http://developer.android.com/sdk/ndk/index.html#overview'
md5 'a154905e49a6246abd823b75b6eda738'
version 'r6'
depends_on 'android-sdk'
def install
bin.mkpath
prefix.install Dir['*']
%w[ ndk-build ndk-gdb ndk-stack ].each { |app| ln_s prefix+app, bin+app }
end
def caveats; <<-EOS
We agreed to the Android NDK License Agreement for you by downloading the NDK.
If this is unacceptable you should uninstall.
License information at:
http://developer.android.com/sdk/terms.html
Software and System requirements at:
http://developer.android.com/sdk/ndk/index.html#requirements
For more documentation on Android NDK, please check:
#{prefix}/docs
EOS
end
end