brew/Library/Homebrew/extend/os/mac/software_spec.rb
Mike McQuaid 0c1b556196
uses_from_macos: remove before/after.
We're not actually using this anywhere and it makes the code
more complicated.

Relatedly, this PR fixes the issue where
`uses_from_macos "python@2" => :build` was valid on macOS but not
on Linux.
2019-12-19 14:36:33 +00:00

11 lines
188 B
Ruby

# frozen_string_literal: true
class SoftwareSpec
undef uses_from_macos
def uses_from_macos(deps)
@uses_from_macos_elements ||= []
@uses_from_macos_elements << deps
end
end