2012-11-02 09:20:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Trash < Formula
|
|
|
|
homepage 'http://hasseg.org/trash/'
|
2014-09-24 21:56:28 +00:00
|
|
|
url 'https://github.com/ali-rantakari/trash/archive/v0.8.5.tar.gz'
|
|
|
|
sha1 '4e1273a08e7f67f48a8d4aea5119ea733556b8a9'
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-11-02 09:20:32 +00:00
|
|
|
system "#{bin}/trash"
|
|
|
|
end
|
|
|
|
end
|