aria2: fix compilation on Clang 5

Closes Homebrew/homebrew#21356.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Leeroy Ding 2013-07-22 08:54:09 +08:00 committed by Adam Vandenberg
parent 58416bb4a7
commit 6516d24be7
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ class Aria2 < Formula
# Leopard's libxml2 is too old.
depends_on 'libxml2' if MacOS.version <= :leopard
# Fixes compile error with clang 5; already upstream
def patches
"https://github.com/tatsuhiro-t/aria2/commit/6bcf33a69e1bfa9f7679b78f9f287d84798015aa.patch"
end
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'