android-ndk r11b
Updates android-ndk to r11b packaging format changed from self-extracting .bin to .zip file, removed unnecessary installation additional steps Closes Homebrew/homebrew#50359. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>master
parent
190a17b294
commit
b4c3dd205f
|
@ -1,9 +1,8 @@
|
||||||
class AndroidNdk < Formula
|
class AndroidNdk < Formula
|
||||||
desc "Android native-code language toolset"
|
desc "Android native-code language toolset"
|
||||||
homepage "https://developer.android.com/sdk/ndk/index.html"
|
homepage "https://developer.android.com/sdk/ndk/index.html"
|
||||||
url "https://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin"
|
url "https://dl.google.com/android/repository/android-ndk-r11b-darwin-x86_64.zip"
|
||||||
version "r10e"
|
sha256 "3a2743fb357dc0948d17dc0696e4ab5cd724dc4bc1c36a40e797068fbfc9d976"
|
||||||
sha256 "728c309e606f63101f1258c9d3d579b80ac74fe74c511ebb71f460ce5c5d084e"
|
|
||||||
|
|
||||||
bottle :unneeded
|
bottle :unneeded
|
||||||
|
|
||||||
|
@ -17,11 +16,8 @@ class AndroidNdk < Formula
|
||||||
def install
|
def install
|
||||||
bin.mkpath
|
bin.mkpath
|
||||||
|
|
||||||
chmod 0755, "./android-ndk-#{version}-darwin-x86_64.bin"
|
|
||||||
system "./android-ndk-#{version}-darwin-x86_64.bin"
|
|
||||||
|
|
||||||
# Now we can install both 64-bit and 32-bit targeting toolchains
|
# Now we can install both 64-bit and 32-bit targeting toolchains
|
||||||
prefix.install Dir["android-ndk-#{version}/*"]
|
prefix.install Dir["*"]
|
||||||
|
|
||||||
# Create a dummy script to launch the ndk apps
|
# Create a dummy script to launch the ndk apps
|
||||||
ndk_exec = prefix+"ndk-exec.sh"
|
ndk_exec = prefix+"ndk-exec.sh"
|
||||||
|
@ -32,7 +28,7 @@ class AndroidNdk < Formula
|
||||||
test -f "$EXEC" && exec "$EXEC" "$@"
|
test -f "$EXEC" && exec "$EXEC" "$@"
|
||||||
EOS
|
EOS
|
||||||
ndk_exec.chmod 0755
|
ndk_exec.chmod 0755
|
||||||
%w[ndk-build ndk-gdb ndk-stack].each { |app| bin.install_symlink ndk_exec => app }
|
%w[ndk-build ndk-depends ndk-gdb ndk-stack ndk-which].each { |app| bin.install_symlink ndk_exec => app }
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<-EOS.undent
|
def caveats; <<-EOS.undent
|
||||||
|
|
Loading…
Reference in New Issue