Use Formula[] in example formula
This commit is contained in:
parent
4002abb146
commit
750b843edc
@ -272,7 +272,7 @@ class ExampleFormula < Formula
|
|||||||
# break if they remember that exact path. In contrast to that, the
|
# break if they remember that exact path. In contrast to that, the
|
||||||
# `$(brew --prefix)/opt/formula` is the same path for all future
|
# `$(brew --prefix)/opt/formula` is the same path for all future
|
||||||
# versions of the formula!
|
# 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`.
|
# Most software still uses `configure` and `make`.
|
||||||
# Check with `./configure --help` what our options are.
|
# Check with `./configure --help` what our options are.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user