links: additional dependencies
So, yeah, Links has been using the system OpenSSL for secure connections. Additional optional dependencies based on what the configure script recommends, and a mirror, and a test, and style changes. Closes Homebrew/homebrew#33233. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
21bf8babe8
commit
79da820528
1 changed files with 19 additions and 6 deletions
|
@ -1,11 +1,17 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Links < Formula
|
||||
homepage 'http://links.twibright.com/'
|
||||
url 'http://links.twibright.com/download/links-2.8.tar.gz'
|
||||
sha1 'a92cf0c203fc765ef46974f15b2f738f2aec6b00'
|
||||
homepage "http://links.twibright.com/"
|
||||
url "http://links.twibright.com/download/links-2.8.tar.bz2"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/l/links2/links2_2.8.orig.tar.bz2"
|
||||
sha1 "a808d80d910b7d3ad86f4c5089e64f35113b69f2"
|
||||
revision 1
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "openssl"
|
||||
depends_on :x11 => :optional
|
||||
depends_on "libtiff" => :optional
|
||||
depends_on "jpeg" => :optional
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
|
@ -13,11 +19,18 @@ class Links < Formula
|
|||
--disable-dependency-tracking
|
||||
--prefix=#{prefix}
|
||||
--mandir=#{man}
|
||||
--with-ssl=#{Formula["openssl"].opt_prefix}
|
||||
]
|
||||
|
||||
args << "--enable-graphics" if build.with? 'x11'
|
||||
args << "--enable-graphics" if build.with? "x11"
|
||||
args << "--without-libtiff" if build.without? "libtiff"
|
||||
args << "--without-libjpeg" if build.without? "jpeg"
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/links", "https://duckduckgo.com"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue