postgres-xc: rename python@2 optional dependency
This commit is contained in:
parent
d019dc2224
commit
10149681f5
1 changed files with 4 additions and 3 deletions
|
@ -18,12 +18,13 @@ class PostgresXc < Formula
|
|||
|
||||
deprecated_option "no-perl" => "without-perl"
|
||||
deprecated_option "enable-dtrace" => "with-dtrace"
|
||||
deprecated_option "with-python" => "with-python@2"
|
||||
|
||||
depends_on :arch => :x86_64
|
||||
depends_on "openssl"
|
||||
depends_on "readline"
|
||||
depends_on "ossp-uuid" => :recommended
|
||||
depends_on "python" => :optional
|
||||
depends_on "python@2" => :optional
|
||||
|
||||
conflicts_with "postgresql",
|
||||
:because => "postgres-xc and postgresql install the same binaries."
|
||||
|
@ -60,7 +61,7 @@ class PostgresXc < Formula
|
|||
]
|
||||
|
||||
args << "--with-ossp-uuid" if build.with? "ossp-uuid"
|
||||
args << "--with-python" if build.with? "python"
|
||||
args << "--with-python" if build.with? "python@2"
|
||||
args << "--with-perl" if build.with? "perl"
|
||||
args << "--enable-dtrace" if build.with? "dtrace"
|
||||
args << "ARCHFLAGS='-arch x86_64'"
|
||||
|
@ -71,7 +72,7 @@ class PostgresXc < Formula
|
|||
ENV.append "LIBS", `uuid-config --libs`.strip
|
||||
end
|
||||
|
||||
check_python_arch if build.with? "python"
|
||||
check_python_arch if build.with? "python@2"
|
||||
|
||||
system "./configure", *args
|
||||
|
||||
|
|
Loading…
Reference in a new issue