diff options
| author | Jack Nagel | 2013-02-16 17:15:14 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-16 17:22:11 -0600 |
| commit | f93b4f44ad4995b1b6ddceec4615d78d8a6d6ea4 (patch) | |
| tree | cff254b53023fe851f32e7d47669162433589ebf /Library/Homebrew | |
| parent | 866b3cf6a891b4d58969fc4471b7b4cb0cd39ed2 (diff) | |
| download | brew-f93b4f44ad4995b1b6ddceec4615d78d8a6d6ea4.tar.bz2 | |
Fix option flag naming for tap deps
Fixes Homebrew/homebrew#17866.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 04ea1f29d..256959bcb 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -806,10 +806,11 @@ private def post_depends_on(dep) # Generate with- or without- options for optional and recommended # dependencies and requirements - if dep.optional? && !build.has_option?("with-#{dep.name}") - build.add("with-#{dep.name}", "Build with #{dep.name} support") - elsif dep.recommended? && !build.has_option?("without-#{dep.name}") - build.add("without-#{dep.name}", "Build without #{dep.name} support") + name = dep.name.split("/").last # strip any tap prefix + if dep.optional? && !build.has_option?("with-#{name}") + build.add("with-#{name}", "Build with #{name} support") + elsif dep.recommended? && !build.has_option?("without-#{name}") + build.add("without-#{name}", "Build without #{name} support") end end end |
