57 lines
1.8 KiB
Ruby
57 lines
1.8 KiB
Ruby
class Mydumper < Formula
|
|
desc "How MySQL DBA & support engineer would imagine 'mysqldump' ;-)"
|
|
homepage "https://launchpad.net/mydumper"
|
|
url "https://launchpad.net/mydumper/0.6/0.6.2/+download/mydumper-0.6.2.tar.gz"
|
|
sha256 "fa28563e8967752828954c5d81e26ef50aad9083d50a977bf5733833b23e3330"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "393d50cebae3861acafa2a3c7e91378f2dc8be87433da5abde2cbc3f5585b332" => :el_capitan
|
|
sha256 "0c03e9b4eca0f19a77a5f69992c61b88928346fe0b76896da47a76a3910b5e9b" => :yosemite
|
|
sha256 "a299235d0f0460bef8164ea5aea66eea25cff73adfb5319c08a9af61b53724cb" => :mavericks
|
|
end
|
|
|
|
option "without-docs", "Don't build man pages"
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "sphinx-doc" => :build if build.with? "docs"
|
|
depends_on "glib"
|
|
depends_on "mysql"
|
|
depends_on "pcre"
|
|
depends_on "openssl"
|
|
|
|
# This patch allows cmake to find .dylib shared libs in OS X. 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
|
|
args = std_cmake_args
|
|
|
|
if build.without? "docs"
|
|
args << "-DBUILD_DOCS=OFF"
|
|
end
|
|
|
|
system "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
|