Enable PostreSQL 9.4 Native UUID Support

Closes Homebrew/homebrew#31779.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Felix Bünemann 2014-08-28 04:45:17 +02:00 committed by Jack Nagel
parent 2b14fd4aa0
commit 5e9b5382be
1 changed files with 5 additions and 4 deletions

View File

@ -8,9 +8,7 @@ class Postgresql < Formula
url "http://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.bz2" url "http://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.bz2"
sha256 "14176ffb1f90a189e7626214365be08ea2bfc26f26994bafb4235be314b9b4b0" sha256 "14176ffb1f90a189e7626214365be08ea2bfc26f26994bafb4235be314b9b4b0"
# ossp-uuid support cannot be compiled on 9.4beta1: # ossp-uuid is no longer required for uuid support since 9.4beta2:
# http://thread.gmane.org/gmane.comp.db.postgresql.devel.general/229339
# Will keep it stable-only until the usptream issues are resolved.
depends_on "ossp-uuid" => :recommended depends_on "ossp-uuid" => :recommended
# Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php # Fix uuid-ossp build issues: http://archives.postgresql.org/pgsql-general/2012-07/msg00654.php
patch :DATA patch :DATA
@ -70,11 +68,14 @@ class Postgresql < Formula
args << "--with-tcl" unless build.include? 'no-tcl' args << "--with-tcl" unless build.include? 'no-tcl'
args << "--enable-dtrace" if build.include? 'enable-dtrace' args << "--enable-dtrace" if build.include? 'enable-dtrace'
if build.stable? && build.with?("ossp-uuid") if build.with?("ossp-uuid")
args << "--with-ossp-uuid" args << "--with-ossp-uuid"
ENV.append 'CFLAGS', `uuid-config --cflags`.strip ENV.append 'CFLAGS', `uuid-config --cflags`.strip
ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
ENV.append 'LIBS', `uuid-config --libs`.strip ENV.append 'LIBS', `uuid-config --libs`.strip
elsif build.devel?
# Apple's UUID implementation is compatible with e2fs NOT bsd
args << "--with-uuid=e2fs"
end end
if build.build_32_bit? if build.build_32_bit?