aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2016-10-15 13:10:35 +0100
committerMike McQuaid2016-10-15 13:10:37 +0100
commitb1a16deb190ae5ccb05b60a3dd10b53eaf1bae15 (patch)
tree5c74a2f3425ccac27cf40cb01d171e2d34e2b821 /Library/Homebrew/extend
parent13276409a9b08fcbadfed18c25b6fd11af343729 (diff)
downloadbrew-b1a16deb190ae5ccb05b60a3dd10b53eaf1bae15.tar.bz2
Use BSD tar's libarchive LZMA support if available
Avoid using an unnecessary `xz` dependency when it's not needed.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/os/mac/dependency_collector.rb9
-rw-r--r--Library/Homebrew/extend/os/mac/development_tools.rb4
2 files changed, 11 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/os/mac/dependency_collector.rb b/Library/Homebrew/extend/os/mac/dependency_collector.rb
index ee98045b6..72c619105 100644
--- a/Library/Homebrew/extend/os/mac/dependency_collector.rb
+++ b/Library/Homebrew/extend/os/mac/dependency_collector.rb
@@ -1,6 +1,11 @@
class DependencyCollector
- def ant_dep(spec, tags)
+ def ant_dep(tags)
return if MacOS.version < :mavericks
- Dependency.new(spec.to_s, tags)
+ Dependency.new("ant", tags)
+ end
+
+ def xz_dep(tags)
+ return if MacOS.version >= :lion
+ Dependency.new("xz", tags)
end
end
diff --git a/Library/Homebrew/extend/os/mac/development_tools.rb b/Library/Homebrew/extend/os/mac/development_tools.rb
index 381b26e66..7c97b9d69 100644
--- a/Library/Homebrew/extend/os/mac/development_tools.rb
+++ b/Library/Homebrew/extend/os/mac/development_tools.rb
@@ -76,5 +76,9 @@ class DevelopmentTools
end
end
end
+
+ def tar_supports_xz?
+ false
+ end
end
end