From 938110961d69b7807dfa5151a7bfe63b10168d5f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Feb 2014 11:16:55 -0600 Subject: [PATCH] Use Dependency#option_name in BuildOptions#add_dep_option --- Library/Homebrew/build_options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 1c410bf6fe..2406236522 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}")