Add macos-trash v1.1.0 (new formula)

Closes #54253.

Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com>
master
Dario Vladovic 2020-05-04 17:23:50 +02:00 committed by Dawid Dziurla
parent 9b4f1a7143
commit 450bee58ed
3 changed files with 25 additions and 0 deletions

23
Formula/macos-trash.rb Normal file
View File

@ -0,0 +1,23 @@
class MacosTrash < Formula
desc "Move files and folders to the trash"
homepage "https://github.com/sindresorhus/macos-trash"
url "https://github.com/sindresorhus/macos-trash/archive/1.1.0.tar.gz"
sha256 "31c09d385bb50b0f76818a1fe2c850cf56b9575c9fa27ea963cba38dfaba7d04"
head "https://github.com/sindresorhus/macos-trash.git"
depends_on :xcode => ["11.0", :build]
depends_on :macos => :yosemite
conflicts_with "trash", :because => "both install a `trash` binary"
conflicts_with "trash-cli", :because => "both install a `trash` binary"
def install
system "./build"
bin.install "trash"
end
test do
assert_match version.to_s, shell_output("#{bin}/trash --version")
system "#{bin}/trash", "--help"
end
end

View File

@ -17,6 +17,7 @@ class TrashCli < Formula
depends_on "python@3.8"
conflicts_with "macos-trash", :because => "both install a `trash` binary"
conflicts_with "trash", :because => "both install a `trash` binary"
def install

View File

@ -14,6 +14,7 @@ class Trash < Formula
sha256 "75cebaa2b12cd75eeb1bb8deb4737639064f68f010cab94e378bd5ce727d4c34" => :el_capitan
end
conflicts_with "macos-trash", :because => "both install a `trash` binary"
conflicts_with "trash-cli", :because => "both install a `trash` binary"
def install