diff options
| author | Jack Nagel | 2014-05-24 19:45:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-24 19:51:23 -0500 |
| commit | d6fd6aa4bf9a9995045cc7b365da2f7f4b18fb63 (patch) | |
| tree | 0de01b0309542a8d1805f912b4c65da8345e9d7a /Library/Formula | |
| parent | df32d3bff5efec463da2a9647fbac12d68f0edfd (diff) | |
| download | homebrew-d6fd6aa4bf9a9995045cc7b365da2f7f4b18fb63.tar.bz2 | |
mytop: vendor perl dep
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mytop.rb | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/Library/Formula/mytop.rb b/Library/Formula/mytop.rb index e1611f3ae..3a6e437b9 100644 --- a/Library/Formula/mytop.rb +++ b/Library/Formula/mytop.rb @@ -1,14 +1,32 @@ -require 'formula' +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://jeremy.zawodny.com/mysql/mytop/" + url "http://jeremy.zawodny.com/mysql/mytop/mytop-1.6.tar.gz" + sha1 "e1485115ca3a15e79f7811bdc1cfe692aa95833f" - depends_on 'DBD::mysql' => :perl + depends_on :mysql + + resource "DBD::mysql" do + url "http://search.cpan.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" + 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", "install" + end + system "perl", "Makefile.PL", "PREFIX=#{prefix}" - system "make test install" + system "make", "test", "install" + bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"]) end end |
