Skip to content

Commit

Permalink
postgres-xc: Fix for Linuxbrew. (Homebrew#128)
Browse files Browse the repository at this point in the history
postgres-xc was trying to build with Bonjour. Also, it was missing a few
dependencies.

Closes Linuxbrew/homebrew-core#127.
  • Loading branch information
Bob W. Hogg authored Aug 27, 2016
1 parent 55ba010 commit f8cfb64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Formula/postgres-xc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class PostgresXc < Formula
depends_on "libxml2" if MacOS.version <= :leopard # Leopard libxml is too old
depends_on "ossp-uuid" => :recommended
depends_on :python => :optional
depends_on "homebrew/dupes/krb5" unless OS.mac?
depends_on "libxslt" unless OS.mac?
depends_on "perl" unless OS.mac? || build.without?("perl")
depends_on "flex" => :build unless OS.mac?

conflicts_with "postgresql",
:because => "postgres-xc and postgresql install the same binaries."
Expand Down Expand Up @@ -51,7 +55,6 @@ def install
--datadir=#{pkgshare}
--docdir=#{doc}
--enable-thread-safety
--with-bonjour
--with-gssapi
--with-krb5
--with-openssl
Expand All @@ -64,6 +67,7 @@ def install
args << "--with-perl" if build.with? "perl"
args << "--enable-dtrace" if build.with? "dtrace"
args << "ARCHFLAGS='-arch x86_64'"
args << "--with-bonjour" if OS.mac?

if build.with? "ossp-uuid"
ENV.append "CFLAGS", `uuid-config --cflags`.strip
Expand Down

0 comments on commit f8cfb64

Please sign in to comment.