aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/psgrep.rb
blob: 77d58ef3b17a946d4ae4723f234f9b60f6f87a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Psgrep < Formula
  homepage 'http://code.google.com/p/psgrep/'
  url 'https://psgrep.googlecode.com/files/psgrep-1.0.6.tar.bz2'
  sha1 'fe1102546971358a5eff2cff613d70ee63395444'

  head 'http://psgrep.googlecode.com/hg/'

  def install
    bin.install "psgrep"
    man1.install "psgrep.1"
  end

  test do
    output = `#{bin}/psgrep #{Process.pid}`
    assert output.include?($0)
    assert_equal 0, $?.exitstatus
  end
end