aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-12-25 20:44:23 +0000
committerMike McQuaid2014-12-28 12:14:49 +0000
commit99ecc9ac34c649b0ad08068faf6e03cad39da249 (patch)
tree593f619f1b153b7594550067e228d7a352c2dada /Library
parent88208af8e488fe202fd5cb6b96a9f508ca635d5e (diff)
downloadbrew-99ecc9ac34c649b0ad08068faf6e03cad39da249.tar.bz2
unsigned_kext_req: use new cask/download DSL.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirements/unsigned_kext_requirement.rb27
1 files changed, 2 insertions, 25 deletions
diff --git a/Library/Homebrew/requirements/unsigned_kext_requirement.rb b/Library/Homebrew/requirements/unsigned_kext_requirement.rb
index 3f5704847..1a6c16795 100644
--- a/Library/Homebrew/requirements/unsigned_kext_requirement.rb
+++ b/Library/Homebrew/requirements/unsigned_kext_requirement.rb
@@ -5,35 +5,12 @@ 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
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
+ s += super
+ s
end
end