Skip to content

Commit

Permalink
mysql-connector-c++ 8.4.0
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>

mysql-connector-c++: add zlib dep

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 authored and bevanjkay committed May 23, 2024
1 parent 0fbcc52 commit e33808c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/m/mysql-connector-c++.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class MysqlConnectorCxx < Formula
desc "MySQL database connector for C++ applications"
homepage "https://dev.mysql.com/downloads/connector/cpp/"
url "https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.3.0-src.tar.gz"
sha256 "a17bf1fad12b1ab17f5f6c7766289fb87200e919453234c3ec1664d7734be8f8"
url "https://dev.mysql.com/get/Downloads/Connector-C++/mysql-connector-c++-8.4.0-src.tar.gz"
sha256 "540b3d3b4d20ecf9f900bf55bba870718e50672f54fa2cdb124adf385796ce8b"
license "GPL-2.0-only" => { with: "Universal-FOSS-exception-1.0" }

livecheck do
Expand All @@ -24,9 +24,14 @@ class MysqlConnectorCxx < Formula
depends_on "cmake" => :build
depends_on "mysql-client"
depends_on "openssl@3"
depends_on "zlib"

def install
system "cmake", "-S", ".", "-B", "build", "-DINSTALL_LIB_DIR=lib", *std_cmake_args
args = %w[
-DINSTALL_LIB_DIR=lib
-DWITH_ZLIB=system
]
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit e33808c

Please sign in to comment.