homebrew-core/Formula/lorem.rb

20 lines
474 B
Ruby
Raw Normal View History

require 'formula'
class Lorem < Formula
homepage 'http://code.google.com/p/lorem/'
2013-01-29 05:08:45 +00:00
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