Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / g / g-ls.rb
blob3f832a1ac3247cfe06e8336867bce1564dafff3d
1 class GLs < Formula
2   desc "Powerful and cross-platform ls"
3   homepage "https://g.equationzhao.space"
4   url "https://github.com/Equationzhao/g/archive/refs/tags/v0.29.0.tar.gz"
5   sha256 "c76566378d8aca166ba33e441d9730e01838ade28f221e9256d5123c1d75e560"
6   license "MIT"
7   head "https://github.com/Equationzhao/g.git", branch: "master"
9   bottle do
10     rebuild 1
11     sha256 cellar: :any_skip_relocation, arm64_sequoia: "d4fe791ee275e50ffa8eb284b16b67c09f9e5e16f7929ffe2dd1f7abd8457b0e"
12     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "fbcd3d9f05f0eae7b66de8a63d9c3c90ed6bfe75ac91cd65495a750dc6d72db9"
13     sha256 cellar: :any_skip_relocation, arm64_ventura: "aa988e84b92ac30c144e054e44dfac65e0a7837c52a24e684bf8c3b38ffc6fb5"
14     sha256 cellar: :any_skip_relocation, sonoma:        "74e9868f508684615655dc5863a4f9119f34df4c04c4dd9ddbae26f86eba140f"
15     sha256 cellar: :any_skip_relocation, ventura:       "1c2380882d2fbcc5c1695d1a24d523403bc6e4ec6bfec0bf07d13b6b9ddeff28"
16     sha256 cellar: :any_skip_relocation, x86_64_linux:  "fb9074c42262214c706cf4810971c2890a8d75b133781519a111c3887c55601b"
17   end
19   depends_on "go" => :build
21   def install
22     system "go", "build", *std_go_args(output: bin/"g", ldflags: "-s -w")
24     bash_completion.install "completions/bash/g-completion.bash" => "g"
25     fish_completion.install "completions/fish/g.fish"
26     zsh_completion.install "completions/zsh/_g"
27     man1.install buildpath.glob("man/*.1.gz")
28   end
30   test do
31     assert_match version.to_s, shell_output("#{bin}/g -v")
32     touch "test.txt"
33     assert_match "test.txt", shell_output("#{bin}/g --no-config --hyperlink=never --color=never --no-icon .")
34   end
35 end