Making zip and bzip2 dependecies conditional

Here, we are adding `unless which("zip")` and `unless which("bzip2")`
and, thus, make `zip` and `bzip2` dependencies conditional.
This commit is contained in:
Maxim Belkin 2018-02-19 07:21:34 +00:00
parent 3dabebbd16
commit b084a2581f

View File

@ -73,11 +73,11 @@ class DependencyCollector
def ld64_dep_if_needed(*); end
def zip_dep_if_needed(tags)
Dependency.new("zip", tags)
Dependency.new("zip", tags) unless which("zip")
end
def bzip2_dep_if_needed(tags)
Dependency.new("bzip2", tags)
Dependency.new("bzip2", tags) unless which("bzip2")
end
def self.tar_needs_xz_dependency?