aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/innotop.rb
blob: b1e6d5eb02aeb4c4f617df6fbc10e9cf1e376b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'

class Innotop < Formula
  homepage 'http://code.google.com/p/innotop/'
  url 'http://innotop.googlecode.com/files/innotop-1.9.0.tar.gz'
  sha1 '4f8cbf6d01a1723a5c450d66e192610c5b28c4d7'

  depends_on 'DBD::mysql' => :perl
  depends_on 'Term::ReadKey' => :perl

  # Use /usr/bin/env in shebang; present upstream
  def patches; DATA; end

  def install
    system "perl", "Makefile.PL", "PREFIX=#{prefix}"
    system "make install"
  end
end

__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