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

class Lorem < Formula
  homepage 'http://code.google.com/p/lorem/'
  url 'http://lorem.googlecode.com/svn-history/r4/trunk/lorem', :using => :curl
  version '0.6.1'
  sha1 'aa6ef66e5ee1151397f19b358d772af316cf333b'

  def install
    inreplace "lorem", "!/usr/bin/python", "!/usr/bin/env python"
    bin.install "lorem"
  end

  test do
    output = `#{bin}/lorem -n 2`
    assert_equal "lorem ipsum\n", output
    assert_equal 0, $?.exitstatus
  end
end