whois 5.2.19
also add option for building with libidn2 for IDN support Closes #21690. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
ef269f5628
commit
5ff64ead41
1 changed files with 12 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
|||
class Whois < Formula
|
||||
desc "Lookup tool for domain names and other internet resources"
|
||||
homepage "https://packages.debian.org/sid/whois"
|
||||
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/w/whois/whois_5.2.18.tar.xz"
|
||||
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/w/whois/whois_5.2.18.tar.xz"
|
||||
sha256 "c35d0d26aff37107c244a8ad54fd42e497ec0b90f76309e9beb7078b827c97d5"
|
||||
url "https://mirrors.ocf.berkeley.edu/debian/pool/main/w/whois/whois_5.2.19.tar.xz"
|
||||
mirror "https://mirrorservice.org/sites/ftp.debian.org/debian/pool/main/w/whois/whois_5.2.19.tar.xz"
|
||||
sha256 "6c39a274fd73b87c0ce1e34dfbd1842a0b2ca7a00c97d4202d639ec010e1262c"
|
||||
head "https://github.com/rfc1036/whois.git"
|
||||
|
||||
bottle do
|
||||
|
@ -14,10 +14,18 @@ class Whois < Formula
|
|||
sha256 "73b75963251f3c420d2d24972447d015028dc3d1f872a2b335f5aea8f4b0977c" => :yosemite
|
||||
end
|
||||
|
||||
option "with-libidn2", "Compile with IDN support"
|
||||
|
||||
depends_on "pkg-config" => :build if build.with? "libidn2"
|
||||
depends_on "libidn2" => :optional
|
||||
|
||||
def install
|
||||
system "make", "whois", "HAVE_ICONV=1", "whois_LDADD+=-liconv"
|
||||
ENV.append "LDFLAGS", "-L/usr/lib -liconv"
|
||||
|
||||
system "make", "whois", "HAVE_ICONV=1"
|
||||
bin.install "whois"
|
||||
man1.install "whois.1"
|
||||
man5.install "whois.conf.5"
|
||||
end
|
||||
|
||||
def caveats; <<~EOS
|
||||
|
|
Loading…
Reference in a new issue