homebrew-core/Formula/htop.rb

25 lines
732 B
Ruby
Raw Normal View History

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}"
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
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
end