diff options
| author | Adam Vandenberg | 2010-03-12 22:44:50 -0800 | 
|---|---|---|
| committer | Adam Vandenberg | 2010-03-13 09:42:01 -0800 | 
| commit | 08f486fb4df67ad22c896654b23b6458963f0e89 (patch) | |
| tree | e4cd44bea0bbb112be520e2fcb71405ffa0b8123 /Library/Formula/postgresql.rb | |
| parent | c308413af8f8fce07bc3651d36bf79556a40d2c0 (diff) | |
| download | homebrew-08f486fb4df67ad22c896654b23b6458963f0e89.tar.bz2 | |
Postgresql - use shorter path references
Diffstat (limited to 'Library/Formula/postgresql.rb')
| -rw-r--r-- | Library/Formula/postgresql.rb | 16 | 
1 files changed, 7 insertions, 9 deletions
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb index 308292626..7fe7744c3 100644 --- a/Library/Formula/postgresql.rb +++ b/Library/Formula/postgresql.rb @@ -31,9 +31,7 @@ class Postgresql <Formula      configure_args << "ARCHFLAGS='-arch x86_64'" if bits_64?      # Fails on Core Duo with O4 and O3 -    if Hardware.intel_family == :core -      ENV.O2 -    end +    ENV.O2 if Hardware.intel_family == :core      system "./configure", *configure_args      system "make install" @@ -54,16 +52,16 @@ class Postgresql <Formula    def caveats      caveats = <<-EOS  If this is your first install, create a database with: -    initdb #{HOMEBREW_PREFIX}/var/postgres +    initdb #{var}/postgres  Automatically load on login with:      launchctl load -w #{prefix}/org.postgresql.postgres.plist  Or start manually with: -    pg_ctl -D #{HOMEBREW_PREFIX}/var/postgres -l #{HOMEBREW_PREFIX}/var/postgres/server.log start +    pg_ctl -D #{var}/postgres -l #{var}/postgres/server.log start  And stop with: -    pg_ctl -D #{HOMEBREW_PREFIX}/var/postgres stop -s -m fast +    pg_ctl -D #{var}/postgres stop -s -m fast  EOS      if bits_64? then @@ -92,11 +90,11 @@ To install gems without sudo, see the Homebrew wiki.    <string>org.postgresql.postgres</string>    <key>ProgramArguments</key>    <array> -    <string>#{HOMEBREW_PREFIX}/bin/postgres</string> +    <string>#{bin}/postgres</string>      <string>-D</string> -    <string>#{HOMEBREW_PREFIX}/var/postgres</string> +    <string>#{var}/postgres</string>      <string>-r</string> -    <string>#{HOMEBREW_PREFIX}/var/postgres/server.log</string> +    <string>#{var}/postgres/server.log</string>    </array>    <key>RunAtLoad</key>    <true/>  | 
