Skip to content

Instantly share code, notes, and snippets.

@orzFly
Created July 8, 2015 18:13
Show Gist options
  • Save orzFly/10c2b28ad1e15604f440 to your computer and use it in GitHub Desktop.
Save orzFly/10c2b28ad1e15604f440 to your computer and use it in GitHub Desktop.
aria2 1.19.0 with libssh2
class Aria2 < Formula
homepage "http://aria2.sourceforge.net/"
url "http://sourceforge.net/projects/aria2/files/stable/aria2-1.19.0/aria2-1.19.0.tar.bz2"
sha1 "f5c6cad19fa8dda1394664d66930d59a3a7c4fa0"
depends_on "pkg-config" => :build
depends_on "c-ares" => :build
depends_on "libnettle" => :build
depends_on "libssh2" => :build
needs :cxx11
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
--with-appletls
--without-openssl
--without-gnutls
--without-libgmp
--without-libgcrypt
--with-libcares
--with-libnettle
--with-libssh2
]
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment