From e76280e1eaf26e913d8bcfd03e4e952d4bb43ed1 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 26 Feb 2014 20:32:02 -0800 Subject: postgis: use Formula[] --- Library/Formula/postgis.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/postgis.rb b/Library/Formula/postgis.rb index 0ae3e90af..a35bfe3c7 100644 --- a/Library/Formula/postgis.rb +++ b/Library/Formula/postgis.rb @@ -27,7 +27,7 @@ class Postgis < Formula def install # Follow the PostgreSQL linked keg back to the active Postgres installation # as it is common for people to avoid upgrading Postgres. - postgres_realpath = Formula.factory('postgresql').opt_prefix.realpath + postgres_realpath = Formula["postgresql"].opt_prefix.realpath ENV.deparallelize @@ -36,7 +36,7 @@ class Postgis < Formula # Can't use --prefix, PostGIS disrespects it and flat-out refuses to # accept it with 2.0. "--with-projdir=#{HOMEBREW_PREFIX}", - "--with-jsondir=#{Formula.factory('json-c').opt_prefix}", + "--with-jsondir=#{Formula["json-c"].opt_prefix}", # This is against Homebrew guidelines, but we have to do it as the # PostGIS plugin libraries can only be properly inserted into Homebrew's # Postgresql keg. @@ -93,7 +93,7 @@ class Postgis < Formula end def caveats; - pg = Formula.factory('postgresql').opt_prefix + pg = Formula["postgresql"].opt_prefix <<-EOS.undent To create a spatially-enabled database, see the documentation: http://postgis.net/docs/manual-2.1/postgis_installation.html#create_new_db_extensions -- cgit v1.2.3