class Mydumper < Formula desc "How MySQL DBA & support engineer would imagine 'mysqldump' ;-)" homepage "https://launchpad.net/mydumper" url "https://launchpad.net/mydumper/0.9/0.9.1/+download/mydumper-0.9.1.tar.gz" sha256 "aefab5dc4192acb043d685b6bb952c87557fbea5e083b8547c68ccfec878171f" revision 2 bottle do cellar :any sha256 "c83af06c23cef3f5557401ac032594a76a73dee0b217501f9ed87de2d687d5e7" => :catalina sha256 "cd88536c659e9ed81cef9d17760c3ca39fef7f2f616e82d78a26cc82b83c521d" => :mojave sha256 "98662639ad82a87522d4811da9309fe3d7fa90765a129c452cb4479475c9c58f" => :high_sierra sha256 "772e970e9555afa00e13760f39dd824260a350b1cf375d30f9d0d9ef8e5b60fe" => :sierra end depends_on "cmake" => :build depends_on "pkg-config" => :build depends_on "sphinx-doc" => :build depends_on "glib" depends_on "mysql-client" depends_on "openssl@1.1" depends_on "pcre" # This patch allows cmake to find .dylib shared libs in macOS. A bug report has # been filed upstream here: https://bugs.launchpad.net/mydumper/+bug/1517966 # It also ignores .a libs because of an issue with glib's static libraries now # being included by default in homebrew. patch :p0, :DATA def install system "cmake", ".", *std_cmake_args system "make", "install" end test do system bin/"mydumper", "--help" end end __END__ --- cmake/modules/FindMySQL.cmake 2015-09-16 16:11:34.000000000 -0400 +++ cmake/modules/FindMySQL.cmake 2015-09-16 16:10:56.000000000 -0400 @@ -84,7 +84,7 @@ ) set(TMP_MYSQL_LIBRARIES "") -set(CMAKE_FIND_LIBRARY_SUFFIXES .so .a .lib) +set(CMAKE_FIND_LIBRARY_SUFFIXES .so .lib .dylib) foreach(MY_LIB ${MYSQL_ADD_LIBRARIES}) find_library("MYSQL_LIBRARIES_${MY_LIB}" NAMES ${MY_LIB} HINTS