homebrew-core/Formula/wget.rb
2019-05-24 22:27:56 +08:00

43 lines
1.4 KiB
Ruby

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"
revision 1
bottle do
sha256 "96a58c26308afae033e6d6325e7af3f20618b4ca84f2d265ba3ca16a5eae7e65" => :mojave
sha256 "8ec2c004992bc9b836a84b560b9c93fe2d46f13c27aac246ab3b72379dfe5c34" => :high_sierra
sha256 "cb786d5bf247dc71c57081dfbdbb0762ea31e695954cdb02d75c3e34bc3d1188" => :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