homebrew-core/Formula/psgrep.rb
2015-10-23 20:26:55 +08:00

19 lines
542 B
Ruby

class Psgrep < Formula
desc "Shortcut for the 'ps aux | grep' idiom"
homepage "https://github.com/jvz/psgrep"
# might be dead soon: https://github.com/jvz/psgrep/issues/2
url "https://psgrep.googlecode.com/files/psgrep-1.0.6.tar.bz2"
sha256 "6da723575c768e5a2a61f67eb7fdf57ca942b897496ede524d19ea75e2c4ddac"
head "https://github.com/jvz/psgrep.git"
bottle :unneeded
def install
bin.install "psgrep"
man1.install "psgrep.1"
end
test do
assert_match $0, shell_output("#{bin}/psgrep #{Process.pid}")
end
end