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
commite0d23117904f1fae47e48c46b222f0fc507ccc04 (patch)
treee1944e923177c08575e28721252a9b5c6d9c98d4 /Library
parentad37905668a3b17c0fb0a377315b44ed3bc4cfb0 (diff)
downloadhomebrew-e0d23117904f1fae47e48c46b222f0fc507ccc04.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}")