unsigned_kext_req: use new cask/download DSL.
This commit is contained in:
parent
88208af8e4
commit
99ecc9ac34
@ -5,35 +5,12 @@ 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
|
||||||
s = <<-EOS.undent
|
s = <<-EOS.undent
|
||||||
Building this formula from source isn't possible due to OS X
|
Building this formula from source isn't possible due to OS X
|
||||||
Yosemite and above's strict unsigned kext ban.
|
Yosemite and above's strict unsigned kext ban.
|
||||||
EOS
|
EOS
|
||||||
|
s += super
|
||||||
if @cask
|
s
|
||||||
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