From f6a236c482a0001fbb40ee69fa7092791f2c3d8e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 2 Feb 2013 19:24:30 -0600 Subject: postgres-xc: use optional dep --- Library/Formula/postgres-xc.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/postgres-xc.rb b/Library/Formula/postgres-xc.rb index cd54be457..541fcd260 100644 --- a/Library/Formula/postgres-xc.rb +++ b/Library/Formula/postgres-xc.rb @@ -20,12 +20,11 @@ class PostgresXc < Formula depends_on X86_64_Architecture depends_on 'readline' depends_on 'libxml2' if MacOS.version == :leopard # Leopard libxml is too old - depends_on 'ossp-uuid' unless build.include? 'without-ossp-uuid' + depends_on 'ossp-uuid' => :recommended conflicts_with 'postgresql', :because => 'postgres-xc and postgresql install the same binaries.' - option 'without-ossp-uuid', 'Build without OSSP uuid' option 'no-python', 'Build without Python support' option 'no-perl', 'Build without Perl support' option 'enable-dtrace', 'Build with DTrace support' @@ -56,13 +55,13 @@ class PostgresXc < Formula "--with-libxml", "--with-libxslt"] - args << "--with-ossp-uuid" unless build.include? 'without-ossp-uuid' + args << "--with-ossp-uuid" unless build.without? 'ossp-uuid' args << "--with-python" unless build.include? 'no-python' args << "--with-perl" unless build.include? 'no-perl' args << "--enable-dtrace" if build.include? 'enable-dtrace' args << "ARCHFLAGS='-arch x86_64'" - unless build.include? 'without-ossp-uuid' + unless build.without? 'ossp-uuid' ENV.append 'CFLAGS', `uuid-config --cflags`.strip ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip ENV.append 'LIBS', `uuid-config --libs`.strip -- cgit v1.2.3