aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLeeroy Ding2013-07-22 08:54:09 +0800
committerAdam Vandenberg2013-07-24 09:14:45 -0700
commit3a909c3045f40d94b72407a01c61d5ef4cd76c2a (patch)
treec58bc15e5d9a2d9d75bd7c4187f4b2c54a36cd34 /Library
parent8c4959153e503f3397efd7812718d1d4631202e1 (diff)
downloadhomebrew-3a909c3045f40d94b72407a01c61d5ef4cd76c2a.tar.bz2
aria2: fix compilation on Clang 5
Closes #21356. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/aria2.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/aria2.rb b/Library/Formula/aria2.rb
index c3b6f5cbc..441171781 100644
--- a/Library/Formula/aria2.rb
+++ b/Library/Formula/aria2.rb
@@ -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'