aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-09 06:31:09 +0000
committerMisty De Meo2014-11-18 22:59:57 -0800
commit6c82a881c32effea2ccadb0dea1a257d56688b87 (patch)
treef8b685d6974a6eeebbc287bccb80cf0fd4893797 /Library
parent9fe74b8335187deab2a87ed0eb693490449eea1c (diff)
downloadhomebrew-6c82a881c32effea2ccadb0dea1a257d56688b87.tar.bz2
authexec: lion & older only
See formula for explanation. Closes #34039. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/authexec.rb19
1 files changed, 12 insertions, 7 deletions
diff --git a/Library/Formula/authexec.rb b/Library/Formula/authexec.rb
index bce1d2b69..ff2693e8f 100644
--- a/Library/Formula/authexec.rb
+++ b/Library/Formula/authexec.rb
@@ -1,14 +1,19 @@
-require 'formula'
+require "formula"
class Authexec < Formula
- homepage 'https://github.com/tcurdt/authexec'
- url 'https://github.com/tcurdt/authexec/archive/1.0.tar.gz'
- sha1 '73d8fb4202ae99057691788442bb192972ef304c'
+ homepage "https://github.com/tcurdt/authexec"
+ url "https://github.com/tcurdt/authexec/archive/1.0.tar.gz"
+ sha1 "73d8fb4202ae99057691788442bb192972ef304c"
- head 'https://github.com/tcurdt/authexec.git'
+ head "https://github.com/tcurdt/authexec.git"
+
+ # AuthorizationExecuteWithPrivileges was depreciated in OS X 10.7
+ # Installing this on newer systems throws up an ugly, blunt OS X warning.
+ # Running anything under it on newer systems also gets a `status: -60031` error
+ depends_on MaximumMacOSRequirement => :lion
def install
- system ENV.cc, 'authexec.c', '-framework', 'Security', '-o', 'authexec'
- bin.install 'authexec'
+ system ENV.cc, "authexec.c", "-framework", "Security", "-o", "authexec"
+ bin.install "authexec"
end
end