aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Szakáts2015-03-10 15:48:33 +0100
committerMike McQuaid2015-03-11 07:43:39 +0000
commit074012a831a8d8d7bfd69d3fefb5a089e97add45 (patch)
tree30797dfaeba4fefdc348faa4c73730e5867fe465
parentd79e2d98ce592fcfe886688b2b9fde6665f4fe1c (diff)
downloadhomebrew-074012a831a8d8d7bfd69d3fefb5a089e97add45.tar.bz2
android-ndk: use https, modernize, update hashes
Closes #37572. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/android-ndk.rb20
1 files changed, 9 insertions, 11 deletions
diff --git a/Library/Formula/android-ndk.rb b/Library/Formula/android-ndk.rb
index bef131c42..abc5fc546 100644
--- a/Library/Formula/android-ndk.rb
+++ b/Library/Formula/android-ndk.rb
@@ -1,14 +1,12 @@
-require "formula"
-
class AndroidNdk < Formula
- homepage "http://developer.android.com/sdk/ndk/index.html"
+ homepage "https://developer.android.com/sdk/ndk/index.html"
if MacOS.prefer_64_bit?
- url "http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86_64.bin"
- sha1 "6b89cb0c84e2d2bd802a5b78540327c1b3c2d7b8"
+ url "https://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86_64.bin"
+ sha256 "46e6d0249012d926996616709f9fdd2d4506309309c19e3ab7468f7ab04b0ddc"
else
- url "http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86.bin"
- sha1 "fc1f9593eb9669076c25381322a1386869ac02f0"
+ url "https://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86.bin"
+ sha256 "f1eb62d3a256f1339978b96b05bd3d7195debbf07b2d1e8a887d2f2b468d6cc7"
end
version "r10d"
@@ -19,10 +17,10 @@ class AndroidNdk < Formula
bin.mkpath
if MacOS.prefer_64_bit?
- system "chmod", "a+x", "./android-ndk-#{version}-darwin-x86_64.bin"
+ chmod 0755, "./android-ndk-#{version}-darwin-x86_64.bin"
system "./android-ndk-#{version}-darwin-x86_64.bin"
else
- system "chmod", "a+x", "./android-ndk-#{version}-darwin-x86.bin"
+ chmod 0755, "./android-ndk-#{version}-darwin-x86.bin"
system "./android-ndk-#{version}-darwin-x86.bin"
end
@@ -46,10 +44,10 @@ class AndroidNdk < Formula
If this is unacceptable you should uninstall.
License information at:
- http://developer.android.com/sdk/terms.html
+ https://developer.android.com/sdk/terms.html
Software and System requirements at:
- http://developer.android.com/sdk/ndk/index.html#requirements
+ https://developer.android.com/sdk/ndk/index.html#requirements
For more documentation on Android NDK, please check:
#{prefix}/docs