Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/extend/os/mac/dependency_collector.rb

12 lines
228 B
Ruby
Raw Normal View History

follow the pattern more closely
2016-09-18 16:32:10 -04:00
class DependencyCollector
Use BSD tar's libarchive LZMA support if available Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:35 +01:00
def ant_dep(tags)
one less block in mac dep
2016-09-22 08:36:10 -04:00
return if MacOS.version < :mavericks
Use BSD tar's libarchive LZMA support if available Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:35 +01:00
Dependency.new("ant", tags)
end
def xz_dep(tags)
dependency_collector: need xz dep on <= macOS 10.8 Mountain Lion: http://opensource.apple.com/source/libarchive/libarchive-25.1/config.h `/* #undef HAVE_LIBLZMA */` Mavericks: http://opensource.apple.com/source/libarchive/libarchive-29/config.h `#define HAVE_LIBLZMA 1`
2016-10-16 02:03:23 -07:00
return if MacOS.version >= :mavericks
Use BSD tar's libarchive LZMA support if available Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:35 +01:00
Dependency.new("xz", tags)
switch to using extend pattern
2016-09-18 12:11:30 -04:00
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 496ms Template: 6ms
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