postgresql: move to OpenSSL 1.1

This commit is contained in:
Igor Kapkov 2019-08-29 19:24:55 +10:00 committed by FX Coudert
parent aa0e5d3393
commit 6cf9a3d111

View file

@ -3,6 +3,7 @@ class Postgresql < Formula
homepage "https://www.postgresql.org/" homepage "https://www.postgresql.org/"
url "https://ftp.postgresql.org/pub/source/v11.5/postgresql-11.5.tar.bz2" url "https://ftp.postgresql.org/pub/source/v11.5/postgresql-11.5.tar.bz2"
sha256 "7fdf23060bfc715144cbf2696cf05b0fa284ad3eb21f0c378591c6bca99ad180" sha256 "7fdf23060bfc715144cbf2696cf05b0fa284ad3eb21f0c378591c6bca99ad180"
revision 1
head "https://github.com/postgres/postgres.git" head "https://github.com/postgres/postgres.git"
bottle do bottle do
@ -13,7 +14,7 @@ class Postgresql < Formula
depends_on "pkg-config" => :build depends_on "pkg-config" => :build
depends_on "icu4c" depends_on "icu4c"
depends_on "openssl" depends_on "openssl@1.1"
depends_on "readline" depends_on "readline"
conflicts_with "postgres-xc", conflicts_with "postgres-xc",
@ -23,8 +24,8 @@ class Postgresql < Formula
# avoid adding the SDK library directory to the linker search path # avoid adding the SDK library directory to the linker search path
ENV["XML2_CONFIG"] = "xml2-config --exec-prefix=/usr" ENV["XML2_CONFIG"] = "xml2-config --exec-prefix=/usr"
ENV.prepend "LDFLAGS", "-L#{Formula["openssl"].opt_lib} -L#{Formula["readline"].opt_lib}" ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib}"
ENV.prepend "CPPFLAGS", "-I#{Formula["openssl"].opt_include} -I#{Formula["readline"].opt_include}" ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include} -I#{Formula["readline"].opt_include}"
args = %W[ args = %W[
--disable-debug --disable-debug