homebrew-core/Formula/htop.rb

25 lines
744 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Htop < Formula
head 'git://github.com/cynthia/htop-osx.git'
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}"
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"
end
2010-01-04 20:51:57 +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
end