mariadb-connector-c 2.2.2 (new formula)

Add conflict_with "mariadb-connector-c" against mysql, mariadb, and percona-server

MySQL, MariaDB, and Percona Server will install plugins in lib/plugins.

Closes Homebrew/homebrew#48637.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Hiroshi Hatake 2016-01-30 22:46:55 +09:00 committed by Dominyk Tiller
parent 505c924b88
commit 6d28978218
4 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,26 @@
class MariadbConnectorC < Formula
desc "MariaDB database connector for C applications"
homepage "https://downloads.mariadb.org/connector-c/"
url "https://downloads.mariadb.org/f/connector-c-2.2.2/mariadb-connector-c-2.2.2-src.tar.gz"
sha256 "93f56ad9f08bbaf0da8ef03bc96f7093c426ae40dede60575d485e1b99e6406b"
depends_on "cmake" => :build
depends_on "openssl"
conflicts_with "mysql", "mariadb", "percona-server",
:because => "both install plugins"
def install
args = std_cmake_args
args << "-DWITH_OPENSSL=On"
args << "-DOPENSSL_INCLUDE_DIR=#{Formula["openssl"].opt_include}"
args << "-DCOMPILATION_COMMENT=Homebrew"
system "cmake", ".", *args
system "make", "install"
end
test do
system "#{bin}/mariadb_config", "--cflags"
end
end

View file

@ -30,6 +30,8 @@ class Mariadb < Formula
conflicts_with "mysql-connector-c",
:because => "both install MySQL client libraries"
conflicts_with "mytop", :because => "both install `mytop` binaries"
conflicts_with "mariadb-connector-c",
:because => "both install plugins"
patch do
# fix compilation error https://mariadb.atlassian.net/browse/MDEV-9322

View file

@ -33,6 +33,8 @@ class Mysql < Formula
:because => "mysql, mariadb, and percona install the same binaries."
conflicts_with "mysql-connector-c",
:because => "both install MySQL client libraries"
conflicts_with "mariadb-connector-c",
:because => "both install plugins"
fails_with :llvm do
build 2326

View file

@ -42,6 +42,8 @@ class PerconaServer < Formula
:because => "percona, mariadb, and mysql install the same binaries."
conflicts_with "mysql-connector-c",
:because => "both install MySQL client libraries"
conflicts_with "mariadb-connector-c",
:because => "both install plugins"
fails_with :llvm do
build 2334