aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJulien Kirch2011-12-07 20:38:42 +0100
committerAdam Vandenberg2011-12-15 22:05:43 -0800
commit70701e8beac753c1b10aba9fd2d5d1e951a09a1d (patch)
treefb4c6a9739a903e66b4cf796f525ca8b7b920504 /Library
parent0f9712e98948b1a7a07feedd5a505cd7a49fbbc8 (diff)
downloadhomebrew-70701e8beac753c1b10aba9fd2d5d1e951a09a1d.tar.bz2
mydumper 0.5.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mydumper.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/mydumper.rb b/Library/Formula/mydumper.rb
new file mode 100644
index 000000000..9cb5430ea
--- /dev/null
+++ b/Library/Formula/mydumper.rb
@@ -0,0 +1,29 @@
+require 'formula'
+
+class Mydumper < Formula
+ url 'http://launchpadlibrarian.net/77098505/mydumper-0.5.1.tar.gz'
+ homepage 'http://www.mydumper.org/'
+ md5 'b4df42dfe23f308ab13eb6ecb73a0d21'
+
+ depends_on 'cmake' => :build
+ depends_on 'glib'
+ depends_on 'pcre'
+
+ def install
+ if `which mysql_config`.chomp.empty?
+ opoo "`mysql_config` not found"
+ puts "This software requires the MySQL client libraries."
+ puts "You can install them via Homebrew with one of these:"
+ puts " brew install mysql-connector-c"
+ puts " brew install mysql [--client-only]"
+ puts "Without the client libraries, this formula will fail to compile."
+ end
+
+ system "cmake . #{std_cmake_parameters}"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/mydumper --version"
+ end
+end