homebrew-core/Formula/trash.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

20 lines
426 B
Ruby

require 'formula'
class Trash < Formula
homepage 'http://hasseg.org/trash/'
url 'http://github.com/ali-rantakari/trash/archive/v0.8.4.zip'
sha1 '233773bcaed903e296f20635808c3dce7ef93c4b'
conflicts_with 'osxutils', :because => 'both install a trash binary'
def install
system "make"
system "make docs"
bin.install "trash"
man1.install "trash.1"
end
test do
system "#{bin}/trash"
end
end