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-10-08 06:51:24 +00:00
|
|
|
url "https://github.com/tatsuhiro-t/aria2/releases/download/release-1.19.2/aria2-1.19.2.tar.xz"
|
|
|
|
sha256 "3605486dd495cd8c2f672b7d0b763397989d831396862f15730697ebcf0ad53e"
|
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
|
2015-10-08 07:50:23 +00:00
|
|
|
sha256 "4f86ad9fe0a36da39d9b92bfd13328f4be449f3b2ee8481a3ae1aa4563b478f4" => :el_capitan
|
|
|
|
sha256 "150f486de66ff284ab7491e22d9cc1b4b841904052d65b20a0b36af9833d7b45" => :yosemite
|
|
|
|
sha256 "40ce69ef73400de2cb5c2005b98bec28d4bcb64241eef3dbb548cef53b5ae20c" => :mavericks
|
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
|