2014-07-19 16:43:32 +00:00
|
|
|
require "formula"
|
2009-09-07 12:21:11 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Aria2 < Formula
|
2014-07-19 16:43:32 +00:00
|
|
|
homepage "http://aria2.sourceforge.net/"
|
2014-11-19 13:32:36 +00:00
|
|
|
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
|
2013-04-24 01:37:34 +00:00
|
|
|
|
2014-03-28 02:42:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-11-19 13:52:31 +00:00
|
|
|
sha1 "0bfe8bc96b7d95c0d45c9f84e725eb5eae64d1bf" => :yosemite
|
|
|
|
sha1 "1c8c6558e0016c7e1ac2f01485a676b28df8ac55" => :mavericks
|
|
|
|
sha1 "9199de445bcc3c9dd932781e96d1fa53dd7e922e" => :mountain_lion
|
2014-03-28 02:42:09 +00:00
|
|
|
end
|
|
|
|
|
2014-07-19 16:43:32 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-04-05 04:16:09 +00:00
|
|
|
|
|
|
|
needs :cxx11
|
2013-07-22 00:54:09 +00:00
|
|
|
|
2009-09-07 12:21:11 +00:00
|
|
|
def install
|
2013-11-29 17:13:44 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--with-appletls
|
|
|
|
--without-openssl
|
|
|
|
--without-gnutls
|
|
|
|
--without-libgmp
|
|
|
|
--without-libnettle
|
|
|
|
--without-libgcrypt
|
|
|
|
]
|
2013-12-29 01:16:51 +00:00
|
|
|
|
2013-02-21 05:38:03 +00:00
|
|
|
system "./configure", *args
|
2014-12-07 21:21:57 +00:00
|
|
|
system "make", "install"
|
2013-07-14 18:01:30 +00:00
|
|
|
|
|
|
|
bash_completion.install "doc/bash_completion/aria2c"
|
2009-09-07 12:21:11 +00:00
|
|
|
end
|
|
|
|
end
|