From cb5bb743ee805db5cd99a3c7994fe8332a8d01b0 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Thu, 30 Jul 2020 01:28:11 +0100 Subject: [PATCH] php: use brewed gd & pcre2, reorganise dependencies Closes #58832. Signed-off-by: Misty De Meo Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/php.rb | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Formula/php.rb b/Formula/php.rb index 23d984792816..38e2b0ba5e27 100644 --- a/Formula/php.rb +++ b/Formula/php.rb @@ -6,6 +6,7 @@ class Php < Formula mirror "https://fossies.org/linux/www/php-7.4.8.tar.xz" sha256 "642843890b732e8af01cb661e823ae01472af1402f211c83009c9b3abd073245" license "PHP-3.01" + revision 1 bottle do sha256 "da81ec7dbe2ab2d9cbfcb5fcfa5f8e4fa0258f1947c52a13967c52dc6bab7f8f" => :catalina @@ -29,28 +30,26 @@ class Php < Formula depends_on "autoconf" depends_on "curl-openssl" depends_on "freetds" - depends_on "freetype" + depends_on "gd" depends_on "gettext" depends_on "glib" depends_on "gmp" depends_on "icu4c" - depends_on "jpeg" + depends_on "krb5" depends_on "libffi" - depends_on "libpng" depends_on "libpq" depends_on "libsodium" depends_on "libzip" depends_on "oniguruma" depends_on "openldap" depends_on "openssl@1.1" + depends_on "pcre2" depends_on "sqlite" depends_on "tidy-html5" depends_on "unixodbc" - depends_on "webp" uses_from_macos "xz" => :build uses_from_macos "bzip2" - uses_from_macos "krb5" uses_from_macos "libedit" uses_from_macos "libxml2" uses_from_macos "libxslt" @@ -97,12 +96,8 @@ def install ENV["lt_cv_path_SED"] = "sed" # system pkg-config missing - ENV["KERBEROS_CFLAGS"] = " " - ENV["KERBEROS_LIBS"] = "-lkrb5" ENV["SASL_CFLAGS"] = "-I#{MacOS.sdk_path_if_needed}/usr/include/sasl" ENV["SASL_LIBS"] = "-lsasl2" - ENV["EDIT_CFLAGS"] = " " - ENV["EDIT_LIBS"] = "-ledit" # Each extension that is built on Mojave needs a direct reference to the # sdk path or it won't find the headers @@ -141,14 +136,14 @@ def install --with-apxs2=#{Formula["httpd"].opt_bin}/apxs --with-bz2#{headers_path} --with-curl + --with-external-gd + --with-external-pcre --with-ffi --with-fpm-user=_www --with-fpm-group=_www - --with-freetype --with-gettext=#{Formula["gettext"].opt_prefix} --with-gmp=#{Formula["gmp"].opt_prefix} --with-iconv#{headers_path} - --with-jpeg --with-kerberos --with-layout=GNU --with-ldap=#{Formula["openldap"].opt_prefix} @@ -173,7 +168,6 @@ def install --with-sqlite3 --with-tidy=#{Formula["tidy-html5"].opt_prefix} --with-unixODBC - --with-webp --with-xmlrpc --with-xsl --with-zip