percona-toolkit: revision for mysql
Closes Homebrew/homebrew#46051. Closes Homebrew/homebrew#46268. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
9bbf292f73
commit
2fd35f71b4
1 changed files with 9 additions and 7 deletions
|
@ -2,8 +2,9 @@ class PerconaToolkit < Formula
|
||||||
desc "Percona Toolkit for MySQL"
|
desc "Percona Toolkit for MySQL"
|
||||||
homepage "https://www.percona.com/software/percona-toolkit/"
|
homepage "https://www.percona.com/software/percona-toolkit/"
|
||||||
url "https://www.percona.com/downloads/percona-toolkit/2.2.14/tarball/percona-toolkit-2.2.14.tar.gz"
|
url "https://www.percona.com/downloads/percona-toolkit/2.2.14/tarball/percona-toolkit-2.2.14.tar.gz"
|
||||||
mirror "https://mirrors.kernel.org/debian/pool/main/p/percona-toolkit/percona-toolkit_2.2.14.orig.tar.gz"
|
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/p/percona-toolkit/percona-toolkit_2.2.14.orig.tar.gz"
|
||||||
sha256 "dd02bedef65536321af6ad3fc6fd8f088e60830267daa613189a14c10ad3a0d0"
|
sha256 "dd02bedef65536321af6ad3fc6fd8f088e60830267daa613189a14c10ad3a0d0"
|
||||||
|
revision 1
|
||||||
|
|
||||||
head "lp:percona-toolkit", :using => :bzr
|
head "lp:percona-toolkit", :using => :bzr
|
||||||
|
|
||||||
|
@ -19,9 +20,9 @@ class PerconaToolkit < Formula
|
||||||
depends_on "openssl"
|
depends_on "openssl"
|
||||||
|
|
||||||
resource "DBD::mysql" do
|
resource "DBD::mysql" do
|
||||||
url "https://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.032_01.tar.gz"
|
url "https://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.033.tar.gz"
|
||||||
mirror "http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.032_01.tar.gz"
|
mirror "http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.033.tar.gz"
|
||||||
sha256 "76756b24eed46553f9dad22d0682a82b50ca2c8500ea4ede0a414acab48c9e77"
|
sha256 "cc98bbcc33581fbc55b42ae681c6946b70a26f549b3c64466740dfe9a7eac91c"
|
||||||
end
|
end
|
||||||
|
|
||||||
resource "JSON" do
|
resource "JSON" do
|
||||||
|
@ -31,7 +32,7 @@ class PerconaToolkit < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
|
ENV.prepend_create_path "PERL5LIB", libexec/"lib/perl5"
|
||||||
|
|
||||||
resource("JSON").stage do
|
resource("JSON").stage do
|
||||||
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
||||||
|
@ -43,9 +44,10 @@ class PerconaToolkit < Formula
|
||||||
system "make", "install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
|
|
||||||
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{prefix}"
|
||||||
system "make", "test", "install"
|
system "make", "test", "install"
|
||||||
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
|
share.install prefix/"man"
|
||||||
|
bin.env_script_all_files(libexec/"bin", :PERL5LIB => ENV["PERL5LIB"])
|
||||||
end
|
end
|
||||||
|
|
||||||
test do
|
test do
|
||||||
|
|
Loading…
Reference in a new issue