postgresql@9.5: remove options
This commit is contained in:
parent
bfaad4400f
commit
b4ece83f76
1 changed files with 8 additions and 26 deletions
|
@ -14,23 +14,13 @@ class PostgresqlAT95 < Formula
|
|||
|
||||
keg_only :versioned_formula
|
||||
|
||||
option "without-perl", "Build without Perl support"
|
||||
option "without-tcl", "Build without Tcl support"
|
||||
option "with-dtrace", "Build with DTrace support"
|
||||
option "with-python", "Build with Python3 (incompatible with --with-python@2)"
|
||||
option "with-python@2", "Build with Python2 (incompatible with --with-python)"
|
||||
option "with-python", "Build with Python3"
|
||||
|
||||
deprecated_option "with-python3" => "with-python"
|
||||
|
||||
depends_on "openssl"
|
||||
depends_on "readline"
|
||||
depends_on "python" => :optional
|
||||
depends_on "python@2" => :optional
|
||||
|
||||
fails_with :clang do
|
||||
build 211
|
||||
cause "Miscompilation resulting in segfault on queries"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib}"
|
||||
|
@ -50,36 +40,28 @@ class PostgresqlAT95 < Formula
|
|||
--with-bonjour
|
||||
--with-gssapi
|
||||
--with-ldap
|
||||
--with-openssl
|
||||
--with-pam
|
||||
--with-libxml
|
||||
--with-libxslt
|
||||
--with-openssl
|
||||
--with-pam
|
||||
--with-perl
|
||||
--with-uuid=e2fs
|
||||
]
|
||||
|
||||
args << "--with-perl" if build.with? "perl"
|
||||
|
||||
which_python = nil
|
||||
if build.with?("python") && build.with?("python@2")
|
||||
odie "Cannot provide both --with-python and --with-python@2"
|
||||
elsif build.with?("python") || build.with?("python@2")
|
||||
if build.with?("python")
|
||||
args << "--with-python"
|
||||
which_python = which(build.with?("python") ? "python3" : "python2.7")
|
||||
ENV["PYTHON"] = which("python3")
|
||||
end
|
||||
ENV["PYTHON"] = which_python
|
||||
|
||||
# The CLT is required to build Tcl support on 10.7 and 10.8 because
|
||||
# tclConfig.sh is not part of the SDK
|
||||
if build.with?("tcl") && (MacOS.version >= :mavericks || MacOS::CLT.installed?)
|
||||
if MacOS.version >= :mavericks || MacOS::CLT.installed?
|
||||
args << "--with-tcl"
|
||||
|
||||
if File.exist?("#{MacOS.sdk_path}/System/Library/Frameworks/Tcl.framework/tclConfig.sh")
|
||||
args << "--with-tclconfig=#{MacOS.sdk_path}/System/Library/Frameworks/Tcl.framework"
|
||||
end
|
||||
end
|
||||
|
||||
args << "--enable-dtrace" if build.with? "dtrace"
|
||||
args << "--with-uuid=e2fs"
|
||||
|
||||
# As of Xcode/CLT 10.x the Perl headers were moved from /System
|
||||
# to inside the SDK, so we need to use `-iwithsysroot` instead
|
||||
# of `-I` to point to the correct location.
|
||||
|
|
Loading…
Reference in a new issue