Revert "android-ndk r10b"

This reverts commit cda1ad0db0a776d02f177aa5c3f934ffc942f194.
This commit is contained in:
Mike McQuaid 2014-09-12 13:02:03 +01:00
parent 584bdac104
commit 3f7ecdde94

View file

@ -2,22 +2,23 @@ require 'formula'
class AndroidNdk < Formula
homepage 'http://developer.android.com/sdk/ndk/index.html'
version 'r10'
if MacOS.prefer_64_bit?
url "https://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86_64.tar.bz2"
sha1 '6888a670c9d9007ffba7e314e38c367b6ea67f7c'
url "https://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86_64.tar.bz2"
sha1 '9ecda655e448d3b249be17f1d66f7e4f9535a3b8'
resource "64bit_target" do
url "https://dl.google.com/android/ndk/android-ndk64-r10b-darwin-x86_64.tar.bz2"
sha1 'b8354a4547cedb2901acc3dc35fd29104f6cc1bf'
resource "32bit_target" do
url "https://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86_64.tar.bz2"
sha1 '4a1d226ee7361b51c02e723b5758e3da536cdf8b'
end
else
url "https://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86.tar.bz2"
sha1 'ee763b15cded16d313feded1e7244ce094825574'
url "https://dl.google.com/android/ndk/android-ndk64-r10-darwin-x86.tar.bz2"
sha1 '0fbfd9b3af17cdab56ac475e1998f53c31fb9c1d'
resource "64bit_target" do
url "https://dl.google.com/android/ndk/android-ndk64-r10b-darwin-x86.tar.bz2"
sha1 'e55fecfa0189a0f94725d3208a4a1c1d4235a3ab'
resource "32bit_target" do
url "https://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86.tar.bz2"
sha1 'd38f5fce29e07d8b4deb538ebc2ba1ba4c067afd'
end
end
@ -26,12 +27,12 @@ class AndroidNdk < Formula
def install
bin.mkpath
# Unpack 64-bit target into current directory
target = resource("64bit_target")
# Unpack 32-bit target into current directory
target = resource("32bit_target")
target.verify_download_integrity(target.fetch)
system "tar", "xf", target.cached_download, "-C", buildpath.dirname
system "tar", "xf", target.cached_download
# Now we can install both 32-bit and 64-bit targeting toolchains
# Now we can install both 64-bit and 32-bit targeting toolchains
prefix.install Dir['*']
# Create a dummy script to launch the ndk apps