mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
3dabebbd16
commit
b084a2581f
@ -73,11 +73,11 @@ class DependencyCollector
|
|||||||
def ld64_dep_if_needed(*); end
|
def ld64_dep_if_needed(*); end
|
||||||
|
|
||||||
def zip_dep_if_needed(tags)
|
def zip_dep_if_needed(tags)
|
||||||
Dependency.new("zip", tags)
|
Dependency.new("zip", tags) unless which("zip")
|
||||||
end
|
end
|
||||||
|
|
||||||
def bzip2_dep_if_needed(tags)
|
def bzip2_dep_if_needed(tags)
|
||||||
Dependency.new("bzip2", tags)
|
Dependency.new("bzip2", tags) unless which("bzip2")
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.tar_needs_xz_dependency?
|
def self.tar_needs_xz_dependency?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user