gearman: use Formula[]

This commit is contained in:
Adam Vandenberg committed 2014-02-27 08:21:17 -08:00
1 parent 65d204b772
commit 454ec60a98
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ class Gearman < Formula
args = ["--prefix=#{prefix}"]
args << "--without-mysql" unless build.with? 'mysql'
if build.with? 'postgresql'
pg_config = "#{Formula.factory('postgresql').opt_prefix}/bin/pg_config"
pg_config = "#{Formula['postgresql'].opt_prefix}/bin/pg_config"
args << "--with-postgresql=#{pg_config}"
end
system "./configure", *args