2011-12-07 19:38:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Mydumper < Formula
|
2013-12-06 03:43:15 +00:00
|
|
|
homepage 'https://launchpad.net/mydumper'
|
2012-12-14 21:41:25 +00:00
|
|
|
url 'https://launchpad.net/mydumper/0.5/0.5.2/+download/mydumper-0.5.2.tar.gz'
|
|
|
|
sha1 '1eb1a341635c252f9f4cf611af544e0c94b1687d'
|
2011-12-07 19:38:42 +00:00
|
|
|
|
2012-02-08 17:35:08 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-12-07 19:38:42 +00:00
|
|
|
depends_on 'cmake' => :build
|
2012-11-06 02:03:26 +00:00
|
|
|
depends_on :mysql
|
2011-12-07 19:38:42 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2011-12-07 19:38:42 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/mydumper", "--version"
|
2011-12-07 19:38:42 +00:00
|
|
|
end
|
|
|
|
end
|