From 750b843edc2f2486f8a3bc519453843a32fbcf90 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 27 Feb 2014 14:00:42 -0600 Subject: [PATCH] Use Formula[] in example formula --- Library/Contributions/example-formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb index 40783f398c..98e775b6ff 100644 --- a/Library/Contributions/example-formula.rb +++ b/Library/Contributions/example-formula.rb @@ -272,7 +272,7 @@ class ExampleFormula < Formula # break if they remember that exact path. In contrast to that, the # `$(brew --prefix)/opt/formula` is the same path for all future # versions of the formula! - args << "--with-readline=#{Formula.factory('readline').opt_prefix}/lib" if build.with? "readline" + args << "--with-readline=#{Formula["readline"].opt_prefix}/lib" if build.with? "readline" # Most software still uses `configure` and `make`. # Check with `./configure --help` what our options are.