class Wget < Formula desc "Internet file retriever" homepage "https://www.gnu.org/software/wget/" url "https://ftp.gnu.org/gnu/wget/wget-1.20.3.tar.gz" sha256 "31cccfc6630528db1c8e3a06f6decf2a370060b982841cfab2b8677400a5092e" bottle do sha256 "cfe40dfe41b8da402e74e2ec6a0ca03ff2bd998824188af6e9eacd300d1cc226" => :mojave sha256 "fef738f888e306166489396a2aaf7f0d7cc3257eef97e0d18a62d75e6e6ae440" => :high_sierra sha256 "c2a5d0e2dd91659d491805c7c50723db552abf49e59f39e99eebe08656c858fe" => :sierra end head do url "https://git.savannah.gnu.org/git/wget.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "xz" => :build depends_on "gettext" end depends_on "pkg-config" => :build depends_on "libidn2" depends_on "openssl" def install system "./bootstrap", "--skip-po" if build.head? system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}", "--with-ssl=openssl", "--with-libssl-prefix=#{Formula["openssl"].opt_prefix}", "--disable-debug", "--disable-pcre", "--disable-pcre2", "--without-libpsl" system "make", "install" end test do system bin/"wget", "-O", "/dev/null", "https://google.com" end end