unsigned_kext: use binary and cask options now.
This commit is contained in:
parent
007926d7a6
commit
dc1f58dead
@ -5,12 +5,35 @@ class UnsignedKextRequirement < Requirement
|
|||||||
|
|
||||||
satisfy { MacOS.version < :yosemite }
|
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
|
def message
|
||||||
<<-EOS.undent
|
s = <<-EOS.undent
|
||||||
OS X Mavericks or older is required for this package.
|
Building this formula from source isn't possible due to OS X
|
||||||
OS X Yosemite introduced a strict unsigned kext ban which breaks this package.
|
Yosemite and above's strict unsigned kext ban.
|
||||||
You should remove this package from your system and attempt to find upstream
|
|
||||||
binaries to use instead.
|
|
||||||
EOS
|
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
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user