qt: depend on mysql-client optionally instead of mysql (#29134)

The current Qt 5.11.0 seems to be targeting MySQL 5.7, and the new
MySQL 8 release is not compatible. mysql-client is pinned to 5.7.
This commit is contained in:
Andrew Janke 2018-06-18 04:19:11 -04:00 committed by ilovezfs
parent f593cabc83
commit c73e6673f5

View file

@ -21,9 +21,11 @@ class Qt < Formula
option "with-examples", "Build examples"
option "without-proprietary-codecs", "Don't build with proprietary codecs (e.g. mp3)"
deprecated_option "with-mysql" => "with-mysql-client"
depends_on "pkg-config" => :build
depends_on :xcode => :build
depends_on "mysql" => :optional
depends_on "mysql-client" => :optional
depends_on "postgresql" => :optional
# Restore `.pc` files for framework-based build of Qt 5 on macOS, partially
@ -56,7 +58,7 @@ class Qt < Formula
args << "-nomake" << "examples" if build.without? "examples"
if build.with? "mysql"
if build.with? "mysql-client"
args << "-plugin-sql-mysql"
(buildpath/"brew_shim/mysql_config").write <<~EOS
#!/bin/sh