95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
28 lines
952 B
Ruby
28 lines
952 B
Ruby
class Innotop < Formula
|
|
desc "Top clone for MySQL"
|
|
homepage "https://code.google.com/p/innotop/"
|
|
url "https://innotop.googlecode.com/files/innotop-1.9.1.tar.gz"
|
|
sha256 "117e5af58a83af79b6cf99877b25b1479197597be5a7d51b245a0ad9c69f4d3d"
|
|
|
|
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"
|
|
sha256 "2e00f1eb5822aa097b310203ff611dd635f9d000db9df7ce1e8b0493c082be41"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PERL5LIB", libexec+"lib/perl5"
|
|
|
|
resource("DBD::mysql").stage do
|
|
system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
|
system "make", "install"
|
|
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
|
|
end
|
|
end
|