diff options
| author | Adam Vandenberg | 2011-03-19 09:33:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-19 09:33:50 -0700 |
| commit | 3197e8ff49b9189bf6bc2c8b1dd859241b14bc3e (patch) | |
| tree | a12ff38f7f1b3f7cf8db14cc74b93efffa103b1c | |
| parent | 20b535e0706f6d9b0743463893b8a9b16aa92a89 (diff) | |
| download | homebrew-3197e8ff49b9189bf6bc2c8b1dd859241b14bc3e.tar.bz2 | |
grass: use MacOS.prefer_64_bit?
| -rw-r--r-- | Library/Formula/grass.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/grass.rb b/Library/Formula/grass.rb index bdba00fb3..f9e8443bf 100644 --- a/Library/Formula/grass.rb +++ b/Library/Formula/grass.rb @@ -13,13 +13,13 @@ class Grass < Formula url 'http://grass.osgeo.org/grass64/source/grass-6.4.0.tar.gz' md5 'ac3233aa3351f8e060ea48246aa01c7f' + depends_on "pkg-config" => :build + depends_on "gettext" + depends_on "readline" depends_on "gdal" depends_on "libtiff" depends_on "unixodbc" depends_on "fftw" - depends_on "readline" # uses GNU Readline - depends_on "gettext" # and GNU gettext - depends_on "pkg-config" => :build # So that GRASS can find Cairo depends_on "cairo" if MACOS_VERSION < 10.6 @@ -69,7 +69,7 @@ class Grass < Formula "--without-tcltk" # Disabled due to compatibility issues with OS X Tcl/Tk ] - if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 + if MacOS.prefer_64_bit? configure_args << "--enable-64bit" configure_args << "--with-macosx-archs=x86_64" else @@ -80,7 +80,7 @@ class Grass < Formula if MACOS_VERSION >= 10.6 configure_args << "--with-cairo-includes=/usr/X11/include /usr/X11/include/cairo" else - cairo = Formula.factory( 'cairo' ) + cairo = Formula.factory('cairo') configure_args << "--with-cairo-includes=#{cairo.include + 'cairo'}" configure_args << "--with-cairo-libs=#{cairo.lib}" end |
