aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-12-11 21:00:46 +0000
committerMike McQuaid2014-12-12 09:52:55 +0000
commitb9145968d0411743a79671ea9710b3daea1371cb (patch)
treefca93f50c7fd58f85d6ed085988e494fc27aa9d5 /Library
parent8bb5af4b79e0e43720e56c93dd7268413e16395b (diff)
downloadhomebrew-b9145968d0411743a79671ea9710b3daea1371cb.tar.bz2
unsigned_kext: use binary and cask options now.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements/unsigned_kext_requirement.rb33
1 files changed, 28 insertions, 5 deletions
diff --git a/Library/Homebrew/requirements/unsigned_kext_requirement.rb b/Library/Homebrew/requirements/unsigned_kext_requirement.rb
index 440684773..3f5704847 100644
--- a/Library/Homebrew/requirements/unsigned_kext_requirement.rb
+++ b/Library/Homebrew/requirements/unsigned_kext_requirement.rb
@@ -5,12 +5,35 @@ class UnsignedKextRequirement < Requirement
satisfy { MacOS.version < :yosemite }
+ def initialize(tags=[])
+ tags.each do |tag|
+ next unless tag.is_a? Hash
+ @binary ||= tag[:binary]
+ @cask ||= tag[:cask]
+ end
+ super
+ end
+
def message
- <<-EOS.undent
- OS X Mavericks or older is required for this package.
- OS X Yosemite introduced a strict unsigned kext ban which breaks this package.
- You should remove this package from your system and attempt to find upstream
- binaries to use instead.
+ s = <<-EOS.undent
+ Building this formula from source isn't possible due to OS X
+ Yosemite and above's strict unsigned kext ban.
EOS
+
+ if @cask
+ s += <<-EOS.undent
+
+ You can install from Homebrew Cask:
+ brew install Caskroom/cask/#{@cask}
+ EOS
+ end
+
+ if @binary
+ s += <<-EOS.undent
+
+ You can use the upstream binary:
+ #{@binary}
+ EOS
+ end
end
end