From b98bfc1acb1fb37e3b08443a61fbd23e1620f347 Mon Sep 17 00:00:00 2001 From: Nima Jahanshahi Date: Wed, 19 Nov 2014 17:02:36 +0330 Subject: [PATCH] aria2: upstream patch to fix a crash when a proxy is used See: https://github.com/tatsuhiro-t/aria2/commit/9a931e7 Closes Homebrew/homebrew#34314. Signed-off-by: Nima Jahanshahi Signed-off-by: Jack Nagel --- Formula/aria2.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Formula/aria2.rb b/Formula/aria2.rb index 3e79bb910c5..2adec95e4d1 100644 --- a/Formula/aria2.rb +++ b/Formula/aria2.rb @@ -2,8 +2,19 @@ require "formula" class Aria2 < Formula homepage "http://aria2.sourceforge.net/" - url "https://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.8/aria2-1.18.8.tar.bz2" - sha1 "b6ad7064b1ea769e78f6a7dc9787a12cfc1e153f" + revision 1 + + stable do + url "https://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.8/aria2-1.18.8.tar.bz2" + sha1 "b6ad7064b1ea769e78f6a7dc9787a12cfc1e153f" + + # Upstream patch to fix crash on OSX when proxy is used + # See: https://github.com/tatsuhiro-t/aria2/commit/9a931e7 + patch do + url "https://github.com/tatsuhiro-t/aria2/commit/9a931e7.diff" + sha1 "386c2a831e9ab91524a1af1eeb3037a819b85ec5" + end + end bottle do cellar :any