Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/extend/os/mac/software_spec.rb

11 lines
188 B
Ruby
Raw Normal View History

Extends SoftwareSpec with #uses_from_macos
2019-05-24 21:36:48 -03:00
# frozen_string_literal: true
class SoftwareSpec
Extract linux spec cases & add hash support to default #uses_from_macos
2019-05-26 00:17:40 -03:00
undef uses_from_macos
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
def uses_from_macos(deps)
formula API: expose uses_from_macos list
2019-09-17 18:10:02 -04:00
@uses_from_macos_elements ||= []
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
@uses_from_macos_elements << deps
Extends SoftwareSpec with #uses_from_macos
2019-05-24 21:36:48 -03:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 52ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API