brew/Library/Homebrew/requirements/unsigned_kext_requirement.rb
Mike McQuaid 3f9cce0a03 Use new "macOS" naming where appropriate.
Not quite a mass replacement as I've used OS X and Mac OS X where
describing specific older versions and added compatibility methods
for things in the DSL.
2016-09-18 19:57:19 +01:00

17 lines
343 B
Ruby

require "requirement"
class UnsignedKextRequirement < Requirement
fatal true
satisfy(build_env: false) { MacOS.version < :yosemite }
def message
s = <<-EOS.undent
Building this formula from source isn't possible due to OS X
Yosemite (10.10) and above's strict unsigned kext ban.
EOS
s += super
s
end
end