osm2pgsql: use Formula[]

This commit is contained in:
Adam Vandenberg committed 2014-02-27 08:21:23 -08:00
1 parent 07cc9adf19
commit c4afb35ae2
1 file changed
+2 -2
+2 -2
View File
@@ -14,9 +14,9 @@ class Osm2pgsql < Formula
depends_on "protobuf-c" => :optional
def install
args = ["--with-proj=#{Formula.factory('proj').opt_prefix}"]
args = ["--with-proj=#{Formula["proj"].opt_prefix}"]
if build.with? "protobuf-c"
args << "--with-protobuf-c=#{Formula.factory('protobuf-c').opt_prefix}"
args << "--with-protobuf-c=#{Formula["protobuf-c"].opt_prefix}"
end
system "./autogen.sh"
system "./configure", *args