aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-27 14:00:42 -0600
committerJack Nagel2014-02-27 14:00:42 -0600
commit031a2ed20078966db49a7cd947f947ef91fa292d (patch)
treec20d0da6430a056b907ffa28a244ea8f2e2a57d3 /Library
parent045f418c3ecdd997a50be8615701694ac3267af4 (diff)
downloadhomebrew-031a2ed20078966db49a7cd947f947ef91fa292d.tar.bz2
Use Formula[] in example formula
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/example-formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb
index 40783f398..98e775b6f 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.