Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

postgresql8 8.4.15

  • Loading branch information...
commit 82b3c7b952716950e945a2b6a3475fcef3bd24ed 1 parent ff5ef6b
@jacknagel jacknagel authored
Showing with 9 additions and 19 deletions.
  1. +9 −19 postgresql8.rb
View
28 postgresql8.rb
@@ -1,24 +1,17 @@
require 'formula'
-require 'hardware'
class Postgresql8 < Formula
homepage 'http://www.postgresql.org/'
- url 'http://ftp.postgresql.org/pub/source/v8.4.12/postgresql-8.4.12.tar.gz'
- sha1 '53a17cd0f104bcad112925d3c6fc2e29e1f89c8e'
+ url 'http://ftp.postgresql.org/pub/source/v8.4.15/postgresql-8.4.15.tar.gz'
+ sha1 'aab1ed9b4b2631ec32789ca213cb8ebe326bcc42'
depends_on 'readline'
- depends_on 'libxml2' if MACOS_VERSION < 10.6 # Leopard libxml is too old
+ depends_on 'libxml2' if MacOS.version == :leopard
depends_on 'ossp-uuid'
- def options
- [
- ['--no-python', 'Build without Python support.'],
- ['--no-perl', 'Build without Perl support.']
- ]
- end
+ option 'no-python', 'Build without Python support'
+ option 'no-perl', 'Build without Perl support'
- skip_clean :all
-
# Fix build on 10.8 Mountain Lion
# https://github.com/mxcl/homebrew/commit/cd77baf2e2f75b4ae141414bf8ff6d5c732e2b9a
def patches
@@ -26,7 +19,7 @@ def patches
end
def install
- ENV.libxml2 if MACOS_VERSION >= 10.6
+ ENV.libxml2 if MacOS.version >= :snow_leopard
args = ["--disable-debug",
"--prefix=#{prefix}",
@@ -37,22 +30,19 @@ def install
"--with-openssl",
"--with-libxml", "--with-libxslt"]
- args << "--with-python" unless ARGV.include? '--no-python'
- args << "--with-perl" unless ARGV.include? '--no-perl'
+ args << "--with-python" unless build.include? 'no-python'
+ args << "--with-perl" unless build.include? 'no-perl'
args << "--with-ossp-uuid"
ENV.append 'CFLAGS', `uuid-config --cflags`.strip
ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
ENV.append 'LIBS', `uuid-config --libs`.strip
- if snow_leopard_64? and not ARGV.include? '--no-python'
+ if snow_leopard_64? and not build.include? 'no-python'
args << "ARCHFLAGS='-arch x86_64'"
check_python_arch
end
- # Fails on Core Duo with O4 and O3
- ENV.O2 if Hardware.intel_family == :core
-
system "./configure", *args
system "make install"
Please sign in to comment.
Something went wrong with that request. Please try again.