aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-26 20:32:02 -0800
committerAdam Vandenberg2014-02-27 08:21:24 -0800
commite76280e1eaf26e913d8bcfd03e4e952d4bb43ed1 (patch)
tree01809dc03f15eb978f538ef4b87abae950ed4922 /Library
parent22b5add48b655853c0a1946ae3255f26acce2c39 (diff)
downloadhomebrew-e76280e1eaf26e913d8bcfd03e4e952d4bb43ed1.tar.bz2
postgis: use Formula[]
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/postgis.rb6
1 files changed, 3 insertions, 3 deletions
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