homebrew-core/Formula/aria2.rb
noe111 3dd09e69ff aria2: add recommended dep on curl-ca-bundle
Closes Homebrew/homebrew#17985.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-01 18:14:57 -06:00

22 lines
672 B
Ruby

require 'formula'
class Aria2 < Formula
homepage 'http://aria2.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/aria2/stable/aria2-1.16.3/aria2-1.16.3.tar.bz2'
sha1 'b167ebe325d05a5acd37dcc59300c4f46bfdd42d'
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
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