From a053e79b893ab8278e3b59753a8cdb01c5d5cf5e Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Tue, 28 Apr 2015 22:21:11 -0700 Subject: [PATCH] mytop 1.9.1 Closes Homebrew/homebrew#39171. Signed-off-by: Tim D. Smith --- Formula/mytop.rb | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Formula/mytop.rb b/Formula/mytop.rb index caf56b13f0..9d5e0b49cf 100644 --- a/Formula/mytop.rb +++ b/Formula/mytop.rb @@ -1,21 +1,16 @@ -require "formula" - class Mytop < Formula - homepage "http://jeremy.zawodny.com/mysql/mytop/" - url "http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz" - sha1 "e1485115ca3a15e79f7811bdc1cfe692aa95833f" + homepage "http://www.mysqlfanboy.com/mytop-3/" + url "http://www.mysqlfanboy.com/mytop-3/mytop-1.9.1.tar.gz" + mirror "https://mirrors.kernel.org/debian/pool/main/m/mytop/mytop_1.9.1.orig.tar.gz" + sha256 "179d79459d0013ab9cea2040a41c49a79822162d6e64a7a85f84cdc44828145e" 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 - - patch do - url "https://github.com/jzawodn/mytop/commit/437f2ef8d3fce02eafe935ddbf860d1dfbc43f7d.diff" - sha1 "e0272696da8f21988f452805eeef2717ea663d43" + sha256 "2e00f1eb5822aa097b310203ff611dd635f9d000db9df7ce1e8b0493c082be41" end def install @@ -30,4 +25,8 @@ class Mytop < Formula system "make", "test", "install" bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"]) end + + test do + shell_output("#{bin}/mytop", 1) + end end