Skip to content

Commit

Permalink
fdclone: and missing conflicts; add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Jul 9, 2024
1 parent 9fdb7c6 commit 73ccdb7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/f/fdclone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Fdclone < Formula
homepage "https://hp.vector.co.jp/authors/VA012337/soft/fd/"
url "http://www.unixusers.net/src/fdclone/FD-3.01j.tar.gz"
sha256 "fe5bb67eb670dcdb1f7368698641c928523e2269b9bee3d13b3b77565d22a121"
license :cannot_represent

livecheck do
url :homepage
Expand All @@ -28,6 +29,8 @@ class Fdclone < Formula

uses_from_macos "ncurses"

conflicts_with "fd", because: "both install `fd` binaries"

patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/86107cf/fdclone/3.01b.patch"
sha256 "c4159db3052d7e4abec57ca719ff37f5acff626654ab4c1b513d7879dcd1eb78"
Expand Down Expand Up @@ -55,4 +58,8 @@ def caveats
MESSAGELANG="ja"
EOS
end

test do
assert_match "Hello Homebrew", shell_output("#{bin}/fdsh -c \"echo Hello Homebrew\"")
end
end

0 comments on commit 73ccdb7

Please sign in to comment.