9d108925b2
Closes Homebrew/homebrew#31471. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
45 lines
1.5 KiB
Ruby
45 lines
1.5 KiB
Ruby
require "formula"
|
|
|
|
class PerconaToolkit < Formula
|
|
homepage "http://www.percona.com/software/percona-toolkit/"
|
|
url "http://www.percona.com/redir/downloads/percona-toolkit/2.2.10/tarball/percona-toolkit-2.2.10.tar.gz"
|
|
sha1 "dcdcaad544c8d0631aada41d89b7ffb78745a780"
|
|
|
|
bottle do
|
|
sha1 "4f4a6930ce21896e63a10a924e09772a5890db87" => :mavericks
|
|
sha1 "25b6094e18ce418cdc13817beda32abf13063561" => :mountain_lion
|
|
sha1 "2587f2fbc846610a6f16b665a20d39155413ccc2" => :lion
|
|
end
|
|
|
|
depends_on :mysql
|
|
|
|
resource "DBD::mysql" do
|
|
url "http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.027.tar.gz"
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.027.tar.gz"
|
|
sha1 "3bf1edd6f0b4f6144b2aaa715c80df3fb1cd2119"
|
|
end
|
|
|
|
resource "JSON" do
|
|
url "http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-2.90.tar.gz"
|
|
mirror "http://search.mcpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-2.90.tar.gz"
|
|
sha1 "8f0ffe72cbe9e6287d7ecafcf19b31cc297364c2"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
|
|
|
|
resource("JSON").stage do
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
system "make", "install"
|
|
end
|
|
|
|
resource("DBD::mysql").stage do
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
system "make", "install"
|
|
end
|
|
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
|
system "make", "test", "install"
|
|
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
|
|
end
|
|
end
|