yafc: use Formula[]

This commit is contained in:
Adam Vandenberg 2014-02-25 21:00:05 -08:00
parent 172087e94f
commit ce01121006

View file

@ -9,7 +9,7 @@ class Yafc < Formula
depends_on 'readline'
def install
readline = Formula.factory('readline').opt_prefix
readline = Formula["readline"].opt_prefix
system "./configure", "--prefix=#{prefix}",
"--with-readline=#{readline}"
system "make", "install"