jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / b / bmake.rb
blob93fce28bea5c54c4a831c4e06be98b33fc133cf5
1 class Bmake < Formula
2   desc "Portable version of NetBSD make(1)"
3   homepage "https://www.crufty.net/help/sjg/bmake.html"
4   url "https://www.crufty.net/ftp/pub/sjg/bmake-20250125.tar.gz"
5   sha256 "4c7db7d04dbbfad00e57adc750cdd183095cc494bbeaf9daf338415cb5a599b2"
6   license "BSD-3-Clause"
8   livecheck do
9     url "https://www.crufty.net/ftp/pub/sjg/"
10     regex(/href=.*?bmake[._-]v?(\d{6,8})\.t/i)
11   end
13   bottle do
14     sha256 cellar: :any_skip_relocation, arm64_sequoia: "0a9c3aad2eb28b01f0372c90a02a9909e04aed379f031ad058c4b917f6609c4a"
15     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "6577add099e87c65b506a08bd342e75864dac0f29d79b204484a2de6d0bdb66b"
16     sha256 cellar: :any_skip_relocation, arm64_ventura: "2f7495a742b4e4f3a6bdb5e4d062f5b28c3d2155acb8cb5e249d810edc01fe1b"
17     sha256                               sonoma:        "ca25aff5b24c3b53b14be96c8f560e03481904fc1bb897047dafcc7b93a5cb9b"
18     sha256                               ventura:       "ed4fd1977d1c840ac610f35b4574f5bf76718dd9ae2f4b2ed9c8299f688ce36f"
19     sha256                               x86_64_linux:  "c205f62896d355106beb59ac6e56a3d979d187c5a56cbc2f2b2c66b3c945b5a6"
20   end
22   uses_from_macos "bc" => :build
24   def install
25     # -DWITHOUT_PROG_LINK means "don't symlink as bmake-VERSION."
26     # shell-ksh test segfaults since macOS 11.
27     args = ["--prefix=#{prefix}", "-DWITHOUT_PROG_LINK", "--install", "BROKEN_TESTS=shell-ksh"]
28     system "sh", "boot-strap", *args
30     man1.install "bmake.1"
31   end
33   test do
34     (testpath/"Makefile").write <<~MAKE
35       all: hello
37       hello:
38         @echo 'Test successful.'
40       clean:
41         rm -rf Makefile
42     MAKE
43     system bin/"bmake"
44     system bin/"bmake", "clean"
45   end
46 end