homebrew-core/Formula/percona-toolkit.rb
Viktor Szakáts 01fd5ba3e3 percona-toolkit: use https homepage and url
Closes Homebrew/homebrew#37290.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-03-01 15:39:12 -05:00

46 lines
1.5 KiB
Ruby

require "formula"
class PerconaToolkit < Formula
homepage "https://www.percona.com/software/percona-toolkit/"
url "https://www.percona.com/redir/downloads/percona-toolkit/2.2.13/tarball/percona-toolkit-2.2.13.tar.gz"
sha1 "f3e0e59e6036bfabbd5db881848022e1e4881ab9"
bottle do
sha1 "93a5ad98d2b802f54a63d25af0b47756dcdd182b" => :yosemite
sha1 "6db69533613496f4f42a1384e4e58275b9ef5df5" => :mavericks
sha1 "fdd28988814bb4151bc2308147a881cb00e589c9" => :mountain_lion
end
depends_on :mysql
depends_on "openssl"
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