homebrew-core/Formula/aria2.rb

35 lines
920 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Aria2 < Formula
2010-02-11 22:50:16 +00:00
homepage 'http://aria2.sourceforge.net/'
2014-03-28 00:41:24 +00:00
url 'https://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.4/aria2-1.18.4.tar.bz2'
sha1 '389829028d8e95f08d42a3bef00ab3237a4b246f'
2012-03-06 05:47:22 +00:00
depends_on 'pkg-config' => :build
depends_on :macos => :lion # Needs a c++11 compiler
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 zlib and sqlite don't include .pc files
2013-12-29 01:16:51 +00:00
ENV['ZLIB_CFLAGS'] = '-I/usr/include'
ENV['ZLIB_LIBS'] = '-L/usr/lib -lz'
ENV['SQLITE3_CFLAGS'] = '-I/usr/include'
ENV['SQLITE3_LIBS'] = '-L/usr/lib -lsqlite3'
2013-12-29 01:16:51 +00:00
system "./configure", *args
system "make install"
bash_completion.install "doc/bash_completion/aria2c"
end
end