aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-25 06:33:37 -0800
committerAdam Vandenberg2014-02-27 08:21:19 -0800
commit79f25c67f2241373408dddb9d5f481028b6d24a2 (patch)
treefb3aefdfcc81b435c8baf8a83d75dd6644fe23f5 /Library/Formula
parenta9f0b769d8677185d35893bd199c8125e0bd288c (diff)
downloadhomebrew-79f25c67f2241373408dddb9d5f481028b6d24a2.tar.bz2
grass: use Formula[]
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/grass.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/Library/Formula/grass.rb b/Library/Formula/grass.rb
index abc60f0af..38d928239 100644
--- a/Library/Formula/grass.rb
+++ b/Library/Formula/grass.rb
@@ -43,8 +43,8 @@ class Grass < Formula
end
def install
- readline = Formula.factory('readline')
- gettext = Formula.factory('gettext')
+ readline = Formula["readline"].opt_prefix
+ gettext = Formula["gettext"].opt_prefix
args = [
"--disable-debug", "--disable-dependency-tracking",
@@ -57,13 +57,13 @@ class Grass < Formula
"--with-lapack",
"--with-sqlite",
"--with-odbc",
- "--with-geos=#{Formula.factory('geos').opt_prefix}/bin/geos-config",
+ "--with-geos=#{Formula["geos"].opt_prefix}/bin/geos-config",
"--with-png",
- "--with-readline-includes=#{readline.opt_prefix}/include",
- "--with-readline-libs=#{readline.opt_prefix}/lib",
+ "--with-readline-includes=#{readline}/include",
+ "--with-readline-libs=#{readline}/lib",
"--with-readline",
- "--with-nls-includes=#{gettext.opt_prefix}/include",
- "--with-nls-libs=#{gettext.opt_prefix}/lib",
+ "--with-nls-includes=#{gettext}/include",
+ "--with-nls-libs=#{gettext}/lib",
"--with-nls",
"--with-freetype",
"--without-tcltk" # Disabled due to compatibility issues with OS X Tcl/Tk
@@ -78,13 +78,13 @@ class Grass < Formula
if headless? or build.without? 'wxmac'
args << "--without-wxwidgets"
else
- args << "--with-wxwidgets=#{Formula.factory('wxmac').opt_prefix}/bin/wx-config"
+ args << "--with-wxwidgets=#{Formula["wxmac"].opt_prefix}/bin/wx-config"
end
args << "--enable-64bit" if MacOS.prefer_64_bit?
args << "--with-macos-archs=#{MacOS.preferred_arch}"
- cairo = Formula.factory('cairo')
+ cairo = Formula["cairo"]
args << "--with-cairo-includes=#{cairo.include}/cairo"
args << "--with-cairo-libs=#{cairo.lib}"
args << "--with-cairo"
@@ -93,7 +93,7 @@ class Grass < Formula
args << "--with-postgres" if build.with? "postgresql"
if build.with? "mysql"
- mysql = Formula.factory('mysql')
+ mysql = Formula["mysql"]
args << "--with-mysql-includes=#{mysql.include}/mysql"
args << "--with-mysql-libs=#{mysql.lib}"
args << "--with-mysql"