brew/Library/Homebrew/compat/requirements/x11_requirement.rb
Mike McQuaid 5bea36799b
compat/requirements: add odeprecated.
These can be enabled now Homebrew/homebrew-core has been fixed
(in https://github.com/Homebrew/homebrew-core/pull/32968).
2018-10-23 11:09:04 +01:00

17 lines
283 B
Ruby

require "requirement"
class X11Requirement < Requirement
module Compat
def initialize(tags = [])
if tags.first.to_s.match?(/(\d\.)+\d/)
odeprecated('depends_on :x11 => "X.Y.Z"')
tags.shift
end
super(tags)
end
end
prepend Compat
end