aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-28 11:16:55 -0600
committerJack Nagel2014-02-28 11:16:55 -0600
commit938110961d69b7807dfa5151a7bfe63b10168d5f (patch)
tree996d597780ab2f8df546f64cd786cd2fcdb7d293 /Library
parentc6bc01ab580a8656c458bd6ab616c88ca1974267 (diff)
downloadbrew-938110961d69b7807dfa5151a7bfe63b10168d5f.tar.bz2
Use Dependency#option_name in BuildOptions#add_dep_option
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build_options.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb
index 1c410bf6f..240623652 100644
--- a/Library/Homebrew/build_options.rb
+++ b/Library/Homebrew/build_options.rb
@@ -33,7 +33,7 @@ class BuildOptions
end
def add_dep_option(dep)
- name = dep.name.split("/").last # strip any tap prefix
+ name = dep.option_name
if dep.optional? && !has_option?("with-#{name}")
add("with-#{name}", "Build with #{name} support")
elsif dep.recommended? && !has_option?("without-#{name}")