Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Let option override with/without descriptions

  • Loading branch information...
commit 48da5f1b9f22ead27d33ca6caf05f91e9a768e60 1 parent 5e365dd
@adamv adamv authored committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 Library/Homebrew/formula.rb
View
8 Library/Homebrew/formula.rb
@@ -831,12 +831,16 @@ def test &block
def finalize_dsl
# Synthesize options for optional dependencies
dependencies.deps.select(&:optional?).each do |dep|
- option "with-#{dep.name}", "Build with #{dep.name} support"
+ unless build.has_option? "with-#{dep.name}"
+ option "with-#{dep.name}", "Build with #{dep.name} support"
+ end
end
# Synthesize options for recommended dependencies
dependencies.deps.select(&:recommended?).each do |dep|
- option "without-#{dep.name}", "Build without #{dep.name} support"
+ unless build.has_option? "without-#{dep.name}"
+ option "without-#{dep.name}", "Build without #{dep.name} support"
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.