diff --git a/Formula/php-embed.rb b/Formula/php-embed.rb index c337588..743074d 100644 --- a/Formula/php-embed.rb +++ b/Formula/php-embed.rb @@ -2,9 +2,9 @@ class PhpEmbed < Formula desc "PHP library for embedding in applications" homepage "https://www.php.net/" # Should only be updated if the new version is announced on the homepage, https://www.php.net/ - url "https://www.php.net/distributions/php-8.2.5.tar.xz" - mirror "https://fossies.org/linux/www/php-8.2.5.tar.xz" - sha256 "800738c359b7f1e67e40c22713d2d90276bc85ba1c21b43d99edd43c254c5f76" + url "https://www.php.net/distributions/php-8.3.3.tar.xz" + mirror "https://fossies.org/linux/www/php-8.3.3.tar.xz" + sha256 "b0a996276fe21fe9ca8f993314c8bc02750f464c7b0343f056fb0894a8dfa9d1" license "PHP-3.01" livecheck do @@ -23,6 +23,8 @@ class PhpEmbed < Formula depends_on "php" on_macos do + depends_on "imap-uw" + # PHP build system incorrectly links system libraries # see https://github.com/php/php-src/issues/10680 patch :DATA @@ -150,6 +152,8 @@ def install if OS.mac? args << "--enable-dtrace" + args << "--with-imap=#{Formula["imap-uw"].opt_prefix}" + args << "--with-imap-ssl=#{Formula["openssl@3"].opt_prefix}" args << "--with-ldap-sasl" args << "--with-os-sdkpath=#{MacOS.sdk_path_if_needed}" else