aria2: add recommended dep on curl-ca-bundle

Closes Homebrew/homebrew#17985.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
noe111 2013-02-21 16:38:03 +11:00 committed by Jack Nagel
parent b25cafbf35
commit 3dd09e69ff
1 changed files with 5 additions and 2 deletions

View File

@ -7,13 +7,16 @@ class Aria2 < Formula
depends_on 'pkg-config' => :build
depends_on 'gnutls'
depends_on 'curl-ca-bundle' => :recommended
# Leopard's libxml2 is too old.
depends_on 'libxml2' if MacOS.version == :leopard
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = %W[--disable-dependency-tracking --prefix=#{prefix}]
args << "--with-ca-bundle=#{HOMEBREW_PREFIX}/share/ca-bundle.crt" if build.with? 'curl-ca-bundle'
system "./configure", *args
system "make install"
end
end