Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / w / whois.rb
blob8d124f3332a827515eb7d600ef4306cd39ab6942
1 class Whois < Formula
2   desc "Lookup tool for domain names and other internet resources"
3   homepage "https://github.com/rfc1036/whois"
4   url "https://github.com/rfc1036/whois/archive/refs/tags/v5.5.23.tar.gz"
5   sha256 "dcfc08f3362c74ec8ae30691941909ebccf0cb3d27da04236f7e2790dbc7757c"
6   license "GPL-2.0-or-later"
7   head "https://github.com/rfc1036/whois.git", branch: "next"
9   bottle do
10     sha256 cellar: :any,                 arm64_sequoia:  "6bbafe8f28a7bc249fa13317f3214a3d337514804fb2b08ad71249d4c6000d5c"
11     sha256 cellar: :any,                 arm64_sonoma:   "8d6091c37f0dacdfc405f47bccf139e045b7e25c8a80308b39e0e86dcd52244e"
12     sha256 cellar: :any,                 arm64_ventura:  "c57142742802829d13211473d7ec414d0d160aee0ac6d8d28c185add741c05c4"
13     sha256 cellar: :any,                 arm64_monterey: "624fdd325d3df32e527638eebbcf96bf102a671b81edb03500a2f759874c53a6"
14     sha256 cellar: :any,                 sonoma:         "a600dfa4f23f1dca739a6db788bc8e3195919aa6c579c91543e987ce08a56da1"
15     sha256 cellar: :any,                 ventura:        "cc3648f1c7a32ce79016a47160f023b31784d2d5f69960cd21c062c5eebd98aa"
16     sha256 cellar: :any,                 monterey:       "8a9bbfded4c82b0cc9fcca6baade71b6302407fa364b5330e45c6d4cc6a1e179"
17     sha256 cellar: :any_skip_relocation, x86_64_linux:   "cd142b3ede0a61f81a5170d74999237bb663cce79de305d607d4d88a28216571"
18   end
20   keg_only :provided_by_macos
22   depends_on "pkgconf" => :build
23   depends_on "libidn2"
25   def install
26     ENV.append "LDFLAGS", "-L/usr/lib -liconv" if OS.mac?
28     # Fix compile with newer Clang
29     ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
31     have_iconv = if OS.mac?
32       "HAVE_ICONV=1"
33     else
34       "HAVE_ICONV=0"
35     end
37     system "make", "whois", have_iconv
38     bin.install "whois"
39     man1.install "whois.1"
40     man5.install "whois.conf.5"
41   end
43   test do
44     system bin/"whois", "brew.sh"
45   end
46 end