diff options
| author | Adam Vandenberg | 2010-08-07 21:04:37 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-22 20:11:03 -0700 |
| commit | 31f1fabd032c7546417c2b5a4e5b874831b32aaa (patch) | |
| tree | afa64652cf90d79c3cb2110e092eabcc5b9f5962 /Library/Formula/postgresql.rb | |
| parent | 2bc91fd69a3fa7e71d7df245cd07901afa0ed0a7 (diff) | |
| download | homebrew-31f1fabd032c7546417c2b5a4e5b874831b32aaa.tar.bz2 | |
Define "snow_leopard_64?"
snow_leopard_64? (defined in Hardware) is a short-cut for:
MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/postgresql.rb')
| -rw-r--r-- | Library/Formula/postgresql.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 93cf895ef..bb526f39f 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -1,8 +1,6 @@ require 'formula' require 'hardware' -def bits_64?; MACOS_VERSION >= 10.6 && Hardware.is_64_bit?; end - class Postgresql <Formula homepage 'http://www.postgresql.org/' url 'http://ftp2.uk.postgresql.org/sites/ftp.postgresql.org/source/v8.4.4/postgresql-8.4.4.tar.bz2' @@ -41,7 +39,7 @@ class Postgresql <Formula ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LIBS', `uuid-config --libs`.strip - if bits_64? and not ARGV.include? '--no-python' + if snow_leopard_64? and not ARGV.include? '--no-python' args << "ARCHFLAGS='-arch x86_64'" check_python_arch end @@ -112,7 +110,7 @@ And stop with: pg_ctl -D #{var}/postgres stop -s -m fast EOS - if bits_64? then + if snow_leopard_64? then s << <<-EOS If you want to install the postgres gem, including ARCHFLAGS is recommended: |
