homebrew-core/Formula/lynx.rb

54 lines
2.2 KiB
Ruby

class Lynx < Formula
desc "Text-based web browser"
homepage "https://invisible-island.net/lynx/"
url "https://invisible-mirror.net/archives/lynx/tarballs/lynx2.8.9rel.1.tar.bz2"
version "2.8.9rel.1"
sha256 "387f193d7792f9cfada14c60b0e5c0bff18f227d9257a39483e14fa1aaf79595"
license "GPL-2.0"
revision 1
livecheck do
url "https://invisible-mirror.net/archives/lynx/tarballs/?C=M&O=D"
regex(/href=.*?lynx[._-]?v?(\d+(?:\.\d+)+(?:rel\.?\d+))\.t/i)
end
bottle do
sha256 arm64_monterey: "2d0012c3830f199df0bd47a115a63dbd96c21283e3736fb3382ac3c6828c94f4"
sha256 arm64_big_sur: "c79e9528464e79e45a7ece951ffaa5304e988f294234172ccb59b3cb9f0a2fec"
sha256 monterey: "0a6a85177a8005e6cde43ee1fff5d21b69f382eb6f12a9652e912e8d8f924b3f"
sha256 big_sur: "a3b88b08c22efa2c898573395a253e1ddcb3fb90888ef963c00f9e5b69cd1aa1"
sha256 catalina: "b7b36f0697736fc1744026c18968bec4d5c1433356678e853d734406f9dc3612"
sha256 mojave: "3b4c3a636d19106a2fea571889a4159fd49b82fbd2694c206d4851b15281fddd"
sha256 high_sierra: "68eb083eff0962b83dc121e9194d430d4e9c2eb7d559cb998ba992da9b566479"
sha256 sierra: "b8ee13323a4e8760f21a82da3b579d3373e282398ff7efe56c7ec8ae9cb0d064"
sha256 x86_64_linux: "7067fe13b0e2be8fed0b06b0f83ea0f5b44142db148a6f82866e77e1c90c6b68"
end
depends_on "openssl@1.1"
uses_from_macos "ncurses"
uses_from_macos "zlib"
def install
# Using --with-screen=ncurses to due to behaviour change in Big Sur
# https://github.com/Homebrew/homebrew-core/pull/58019
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}",
"--disable-echo",
"--enable-default-colors",
"--with-zlib",
"--with-bzlib",
"--with-ssl=#{Formula["openssl@1.1"].opt_prefix}",
"--enable-ipv6",
"--with-screen=ncurses",
"--disable-config-info"
system "make", "install"
end
test do
system "#{bin}/lynx", "-dump", "https://example.org/"
end
end