diff options
| author | Adam Vandenberg | 2014-05-19 11:35:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-20 15:02:49 -0700 |
| commit | dfd9db9570dd87ae8c98c8a4b9b4a53393b79cd7 (patch) | |
| tree | 729e241a3135e0c0b3610a06fabc386d1c9a454f | |
| parent | 0675df9a22f0b581d0089844acfc0410247ccbe2 (diff) | |
| download | homebrew-dfd9db9570dd87ae8c98c8a4b9b4a53393b79cd7.tar.bz2 | |
innotop: vendor dependency
| -rw-r--r-- | Library/Formula/innotop.rb | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Library/Formula/innotop.rb b/Library/Formula/innotop.rb index 1e471e38e..5b3233839 100644 --- a/Library/Formula/innotop.rb +++ b/Library/Formula/innotop.rb @@ -1,14 +1,28 @@ -require 'formula' +require "formula" class Innotop < Formula - homepage 'http://code.google.com/p/innotop/' - url 'https://innotop.googlecode.com/files/innotop-1.9.1.tar.gz' - sha1 '6b0b5f492e7188152727f6c157043be180ba516a' + homepage "http://code.google.com/p/innotop/" + url "https://innotop.googlecode.com/files/innotop-1.9.1.tar.gz" + sha1 "6b0b5f492e7188152727f6c157043be180ba516a" - 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 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 |
