2015-08-03 13:09:07 +01:00
|
|
|
require "requirement"
|
2014-10-05 22:17:25 +01:00
|
|
|
|
|
|
|
class MaximumMacOSRequirement < Requirement
|
|
|
|
fatal true
|
|
|
|
|
|
|
|
def initialize(tags)
|
|
|
|
@version = MacOS::Version.from_symbol(tags.first)
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
2016-09-17 15:32:44 +01:00
|
|
|
satisfy(build_env: false) { MacOS.version <= @version }
|
2014-10-05 22:17:25 +01:00
|
|
|
|
|
|
|
def message
|
2017-10-15 02:28:32 +02:00
|
|
|
<<~EOS
|
2016-09-18 19:57:19 +01:00
|
|
|
This formula either does not compile or function as expected on macOS
|
2015-11-03 23:24:46 +00:00
|
|
|
versions newer than #{@version.pretty_name} due to an upstream incompatibility.
|
2014-10-05 22:17:25 +01:00
|
|
|
EOS
|
|
|
|
end
|
2016-09-18 00:37:02 -04:00
|
|
|
|
|
|
|
def display_s
|
|
|
|
"macOS <= #{@version}"
|
|
|
|
end
|
2014-10-05 22:17:25 +01:00
|
|
|
end
|