homebrew-core/Formula/aria2.rb

40 lines
970 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Aria2 < Formula
2014-07-19 16:43:32 +00:00
homepage "http://aria2.sourceforge.net/"
url "https://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.9/aria2-1.18.9.tar.bz2"
sha1 "31ac90d9ffcdba4cdf936ddfbc3d8f08416360e6"
2014-03-28 02:42:09 +00:00
bottle do
cellar :any
2015-02-02 10:37:58 +00:00
sha1 "a82e7baf0bf64cd3beb6ee2c5d16c10534138852" => :yosemite
sha1 "f0ab29fdeebb96b6f9594a7119b9210b820b28f4" => :mavericks
sha1 "b931e5c286c97a5cc5d5ef2e21336dfc9fe62ea6" => :mountain_lion
2014-03-28 02:42:09 +00:00
end
2014-07-19 16:43:32 +00:00
depends_on "pkg-config" => :build
needs :cxx11
def install
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
system "./configure", *args
system "make", "install"
bash_completion.install "doc/bash_completion/aria2c"
end
test do
system "#{bin}/aria2c", "http://brew.sh"
assert File.exist? "index.html"
end
end