2010-03-29 13:36:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Innotop < Formula
|
2010-03-29 13:36:21 +00:00
|
|
|
homepage 'http://code.google.com/p/innotop/'
|
2012-11-19 01:31:04 +00:00
|
|
|
url 'http://innotop.googlecode.com/files/innotop-1.9.0.tar.gz'
|
|
|
|
sha1 '4f8cbf6d01a1723a5c450d66e192610c5b28c4d7'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-03-29 13:36:21 +00:00
|
|
|
depends_on 'DBD::mysql' => :perl
|
2013-04-11 02:03:23 +00:00
|
|
|
depends_on 'Term::ReadKey' => :perl
|
|
|
|
|
|
|
|
# Use /usr/bin/env in shebang; present upstream
|
|
|
|
def patches; DATA; end
|
2010-03-29 13:36:21 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-15 18:31:21 +00:00
|
|
|
system "perl", "Makefile.PL", "PREFIX=#{prefix}"
|
2010-03-29 13:36:21 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-04-11 02:03:23 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/innotop b/innotop
|
|
|
|
index 0606349..3fa033d 100755
|
|
|
|
--- a/innotop
|
|
|
|
+++ b/innotop
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/usr/bin/perl
|
|
|
|
+#!/usr/bin/env perl
|
|
|
|
|
|
|
|
# vim: tw=160:nowrap:expandtab:tabstop=3:shiftwidth=3:softtabstop=3
|
|
|
|
|