2009-10-17 12:45:30 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Htop < Formula
|
2010-09-10 13:40:53 +00:00
|
|
|
head 'git://github.com/cynthia/htop-osx.git'
|
2009-10-17 12:45:30 +00:00
|
|
|
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
|
|
|
|
2011-04-04 23:56:47 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
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
|