2011-03-10 05:11:03 +00:00
|
|
|
class Aria2 < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Download with resuming and segmented downloading"
|
2014-07-19 16:43:32 +00:00
|
|
|
homepage "http://aria2.sourceforge.net/"
|
2015-08-06 18:13:22 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/aria2/stable/aria2-1.19.0/aria2-1.19.0.tar.bz2"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/a/aria2/aria2_1.19.0.orig.tar.bz2"
|
|
|
|
sha256 "ae2b6fce7a0974c9156415cccf2395cd258580ab34eec2b34a8e76120b7240ce"
|
2013-04-24 01:37:34 +00:00
|
|
|
|
2014-03-28 02:42:09 +00:00
|
|
|
bottle do
|
2015-09-22 11:50:23 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "c18e70c16e7529c2285edd6a52e7fbbf404753a5ab12d1631fc427fc2e9a9c7a" => :el_capitan
|
2015-08-06 22:23:05 +00:00
|
|
|
sha256 "74b5953f8370d15dae0c8461fe28152f356b71083d57f582ba93c2a29a9af2c0" => :yosemite
|
|
|
|
sha256 "41d5c1c5c076451bced12bad349911f6db3ece6b5ca685a9915e0c7d460f8109" => :mavericks
|
|
|
|
sha256 "e1a1d49a8dccd4e24371a685dd66d5d2a37e180c8fc2f733243cd68b77e3bf5b" => :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
|
2015-02-02 10:19:25 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/aria2c", "http://brew.sh"
|
|
|
|
assert File.exist? "index.html"
|
|
|
|
end
|
2009-09-07 12:21:11 +00:00
|
|
|
end
|