
- Add some `odeprecated` - Make some `odeprecated` now `odisabled` - Remove `odisabled` code. - Remove old update migrations - Remove GCC 4.0 compiler - Remove Tiger-only code - Remove 32-bit-only code - Remove use of LD64 - Remove GCC 4.3 - 4.8 support.
22 lines
433 B
Ruby
22 lines
433 B
Ruby
require "requirement"
|
|
|
|
class XcodeRequirement < Requirement
|
|
module Compat
|
|
def initialize(tags = [])
|
|
@version = if tags.first.to_s.match?(/(\d\.)+\d/)
|
|
tags.shift
|
|
else
|
|
tags.find do |tag|
|
|
next unless tag.to_s.match?(/(\d\.)+\d/)
|
|
odisabled('depends_on :xcode => [..., "X.Y.Z"]')
|
|
tags.delete(tag)
|
|
end
|
|
end
|
|
|
|
super(tags)
|
|
end
|
|
end
|
|
|
|
prepend Compat
|
|
end
|