From 6c3cd9fc74038bc14497a4e5dcc0db087dc6a6e2 Mon Sep 17 00:00:00 2001 From: Robson Peixoto Date: Wed, 10 Apr 2013 23:03:23 -0300 Subject: Innotop: add perlbrew support Closes #19118. Signed-off-by: Jack Nagel --- Library/Formula/innotop.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Library/Formula/innotop.rb b/Library/Formula/innotop.rb index d364c0362..b1e6d5eb0 100644 --- a/Library/Formula/innotop.rb +++ b/Library/Formula/innotop.rb @@ -6,9 +6,25 @@ class Innotop < Formula 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 + -- cgit v1.2.3