Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / t / tere.rb
blob726e2bc10b525ddffa49c110a281917727b93612
1 class Tere < Formula
2   desc "Terminal file explorer"
3   homepage "https://github.com/mgunyho/tere"
4   url "https://github.com/mgunyho/tere/archive/refs/tags/v1.6.0.tar.gz"
5   sha256 "7db94216b94abd42f48105c90e0e777593aaf867472615eb94dc2f77bb6a3cfb"
6   license "EUPL-1.2"
7   head "https://github.com/mgunyho/tere.git", branch: "master"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia: "4c9a60b3dc17b2a32d0ecf1836b3914099c6ddc58f19261dae3b5fa7166b28ae"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "ec52070d45befb5b87f6e7785a336cd8966774c754bbc7a6f1f0107d66523b13"
12     sha256 cellar: :any_skip_relocation, arm64_ventura: "f59761f29b1ceeb7f633056dfac46d6293ef9ff320dcf3260a2e7ce5fb7d988a"
13     sha256 cellar: :any_skip_relocation, sonoma:        "65ae7c433f4610971aa049108551e70bd6b89adb5dbd0966699ed4ae7ae23aab"
14     sha256 cellar: :any_skip_relocation, ventura:       "1330af75bc33de620228e27758d6bdef23e1956c7a249d3f7d6f644e4d40fa00"
15     sha256 cellar: :any_skip_relocation, x86_64_linux:  "9665ab7e423ec09d10dd3e85bec42d8a1e222ef3bfcfb7b229fcdafa5210d69c"
16   end
18   depends_on "rust" => :build
20   def install
21     system "cargo", "install", *std_cargo_args
22   end
24   test do
25     # Launch `tere` and then immediately exit to test whether `tere` runs without errors.
26     PTY.spawn(bin/"tere") do |r, w, _pid|
27       r.winsize = [80, 43]
28       sleep 1
29       w.write "\e"
30       begin
31         r.read
32       rescue Errno::EIO
33         # GNU/Linux raises EIO when read is done on closed pty
34       end
35     end
36   end
37 end