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"
|
2016-04-26 23:28:40 +00:00
|
|
|
homepage "https://aria2.github.io/"
|
2016-09-17 08:47:09 +00:00
|
|
|
url "https://github.com/aria2/aria2/releases/download/release-1.27.1/aria2-1.27.1.tar.xz"
|
|
|
|
sha256 "c09627ef31602cfdfa7c9925a6c3b05fe7d2097d83f42dcfdef68664bd106f08"
|
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
|
2016-09-27 09:03:40 +00:00
|
|
|
sha256 "a93693514d5d9bd0fa82243f509de5f65b4a833e4d5b873f04f3d7e68963c411" => :sierra
|
2016-09-17 08:51:36 +00:00
|
|
|
sha256 "b4678ad64b289d436e12d9863b2bd4b12ebdcf6821e1db52650da293578ee7c3" => :el_capitan
|
|
|
|
sha256 "b73b02f655a5de46d70f7576a7c3abfc167feadcebee2cf41a168c44c7ba3b08" => :yosemite
|
|
|
|
sha256 "3d7a7a9d5131db45170cb8a4450043dcae180d5169e825d1e2d5b88a163e3c0f" => :mavericks
|
2014-03-28 02:42:09 +00:00
|
|
|
end
|
|
|
|
|
2014-07-19 16:43:32 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2016-02-18 14:34:36 +00:00
|
|
|
depends_on "libssh2" => :optional
|
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
|
2016-08-20 11:08:52 +00:00
|
|
|
ENV.cxx11
|
|
|
|
|
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
|
|
|
|
2016-02-18 14:34:36 +00:00
|
|
|
args << "--with-libssh2" if build.with? "libssh2"
|
|
|
|
|
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"
|
2016-08-20 11:08:52 +00:00
|
|
|
assert File.exist?("index.html"), "Failed to create index.html!"
|
2015-02-02 10:19:25 +00:00
|
|
|
end
|
2009-09-07 12:21:11 +00:00
|
|
|
end
|