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"
|
2010-08-08 17:20:15 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
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
|
2010-08-08 17:20:15 +00:00
|
|
|
For htop to display correctly all running processes, it needs to run as root.
|
|
|
|
If you don't want to `sudo htop` every time, change the owner and permissions:
|
|
|
|
$ cd #{bin}
|
|
|
|
$ chmod 6555 htop
|
|
|
|
$ sudo chown root htop
|
2010-01-04 20:51:57 +00:00
|
|
|
EOS
|
|
|
|
end
|
2009-10-17 12:45:30 +00:00
|
|
|
end
|