2009-10-17 12:45:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Htop <Formula
|
|
|
|
head 'git://github.com/AndyA/htop-osx.git', :branch => 'osx'
|
|
|
|
homepage 'http://htop.sourceforge.net/'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./autogen.sh"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
2009-11-09 03:29:34 +00:00
|
|
|
system "make", "install", "DEFAULT_INCLUDES='-iquote .'"
|
2010-06-13 23:54:36 +00:00
|
|
|
rm_rf "#{share}/applications" # Don't need Gnome support on OS X
|
|
|
|
rm_rf "#{share}/pixmaps"
|
2009-10-17 12:45:30 +00:00
|
|
|
end
|
2010-01-04 20:51:57 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS
|
|
|
|
In order for htop to display correctly all the running processes, it needs to be ran as root.
|
|
|
|
|
|
|
|
However, if you do not want to type `sudo htop` every time, you can change the owner and permissions for the executable binary:
|
|
|
|
|
|
|
|
$ cd #{prefix}/bin/
|
|
|
|
$ chmod 6555 htop
|
|
|
|
$ sudo chown root htop
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2009-10-17 12:45:30 +00:00
|
|
|
end
|