2012-11-02 09:20:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Trash < Formula
|
|
|
|
homepage 'http://hasseg.org/trash/'
|
2014-02-17 19:15:11 +00:00
|
|
|
url 'http://github.com/ali-rantakari/trash/archive/v0.8.4.zip'
|
|
|
|
sha1 '233773bcaed903e296f20635808c3dce7ef93c4b'
|
2012-11-02 09:20:32 +00:00
|
|
|
|
2013-11-06 06:11:41 +00:00
|
|
|
conflicts_with 'osxutils', :because => 'both install a trash binary'
|
|
|
|
|
2012-11-02 09:20:32 +00:00
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
system "make docs"
|
|
|
|
bin.install "trash"
|
|
|
|
man1.install "trash.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/trash"
|
|
|
|
end
|
|
|
|
end
|