diff options
| author | Adam Vandenberg | 2012-02-07 21:47:54 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-07 21:47:54 -0800 |
| commit | dfc4dfa43ae0ac9ded7fb5d822e35ccfe2c7a2b1 (patch) | |
| tree | 3141fad0101c2d13f1f9aee8ce8f99c7277ebf8c | |
| parent | eae07f25673353ac92e6e835280d6cd1c9baa85a (diff) | |
| download | homebrew-dfc4dfa43ae0ac9ded7fb5d822e35ccfe2c7a2b1.tar.bz2 | |
postgresql: style clean-ups
| -rw-r--r-- | Library/Formula/postgresql.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 3188a41d4..2c9386684 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -26,33 +26,34 @@ class Postgresql < Formula args = ["--disable-debug", "--prefix=#{prefix}", + "--datadir=#{share}/#{name}", + "--docdir=#{doc}", "--enable-thread-safety", "--with-bonjour", "--with-gssapi", "--with-krb5", "--with-openssl", - "--with-libxml", "--with-libxslt"] + "--with-libxml", + "--with-libxslt", + "--with-ossp-uuid"] args << "--with-python" unless ARGV.include? '--no-python' args << "--with-perl" unless ARGV.include? '--no-perl' args << "--enable-dtrace" if ARGV.include? '--enable-dtrace' - args << "--with-ossp-uuid" - - args << "--datadir=#{share}/#{name}" - args << "--docdir=#{doc}" - ENV.append 'CFLAGS', `uuid-config --cflags`.strip ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LIBS', `uuid-config --libs`.strip - if not ARGV.include? '--32-bit' and MacOS.prefer_64_bit? and not ARGV.include? '--no-python' + if not ARGV.build_32_bit? and MacOS.prefer_64_bit? and not ARGV.include? '--no-python' args << "ARCHFLAGS='-arch x86_64'" check_python_arch end - ENV.append 'CFLAGS', '-arch i386' if ARGV.include? '--32-bit' - ENV.append 'LDFLAGS', '-arch i386' if ARGV.include? '--32-bit' + if ARGV.build_32_bit? + ENV.append 'CFLAGS', '-arch i386' + ENV.append 'LDFLAGS', '-arch i386' + end # Fails on Core Duo with O4 and O3 ENV.O2 if Hardware.intel_family == :core @@ -154,7 +155,7 @@ EOS if MacOS.prefer_64_bit? then s << <<-EOS -To install postgresql ( and ossp-uuid ) in 32 bits mode; you may use --32-bit : +To install postgresql (and ossp-uuid) in 32-bit mode: brew install postgresql --32-bit If you want to install the postgres gem, including ARCHFLAGS is recommended: |
