Use Formula[] in example formula

This commit is contained in:
Jack Nagel 2014-02-27 14:00:42 -06:00
parent 4002abb146
commit 750b843edc

View File

@ -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.