jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / b / bingrep.rb
blobaa7140392add05e1245ec7d0b19db08920dc3f44
1 class Bingrep < Formula
2   desc "Greps through binaries from various OSs and architectures"
3   homepage "https://github.com/m4b/bingrep"
4   url "https://github.com/m4b/bingrep/archive/refs/tags/v0.11.0.tar.gz"
5   sha256 "3012aef73b3ef5e8b100824af0db2131f81771338fec5f9fe47dc71bf3782506"
6   license "MIT"
8   bottle do
9     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "bfce04e9d779487f7d4469abcd3be17916615d499f84a06e0580911cbac1ee0b"
10     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "c6ee2f9dd4398cc8a6897481e0f799cbe79227cedc35623c5d0a8c8e6d0895ee"
11     sha256 cellar: :any_skip_relocation, arm64_ventura:  "349e4cd6b80fc83621693d1e68dd4e5c6ab29aa5259eb76edf8926e22f29e8e5"
12     sha256 cellar: :any_skip_relocation, arm64_monterey: "20e1eb2ccd61e211cd3c6bba229b4ccc15ec3594337e20be2f68a2b141fd22c1"
13     sha256 cellar: :any_skip_relocation, arm64_big_sur:  "489ea944bbbd2aeb68925d26e2effee5520155564cd031a6294860445b4510c0"
14     sha256 cellar: :any_skip_relocation, sonoma:         "4bd36f17cf4c9c41ec1bb88df4adbae47f6b537c20517becf4a8026950fa842e"
15     sha256 cellar: :any_skip_relocation, ventura:        "8b2e9baa7b521954bea1cecc6c5259808fdff948fa776902a328f18945414b22"
16     sha256 cellar: :any_skip_relocation, monterey:       "d7c1fa10458fe1fedd754d8b5aa4bc1160abd305cf70078bc1d7e1c9caf385a8"
17     sha256 cellar: :any_skip_relocation, big_sur:        "cdc9b107c8cecaec93dc476ff09a6649c4bf4a9604ee98ce9748d53c71fd9f7b"
18     sha256 cellar: :any_skip_relocation, x86_64_linux:   "0cc509264acdf417f6ae40d102132fddd7ec95c4130c05bfb5d7c4c468f5b3dd"
19   end
21   depends_on "rust" => :build
23   def install
24     system "cargo", "install", *std_cargo_args
25   end
27   test do
28     (testpath/"test.c").write <<~C
29       int homebrew_test() {
30         return 0;
31       }
32       int main() {
33         return homebrew_test();
34       }
35     C
36     system ENV.cc, testpath/"test.c"
37     assert_match "homebrew_test", shell_output("#{bin}/bingrep a.out")
38   end
39 end