2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 12:21:11 +00:00
|
|
|
|
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-01-14 18:43:52 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.3/aria2-1.18.3.tar.bz2'
|
|
|
|
sha1 '1a0b42e69b49fa9efb624ba2ba86118f0fb77aef'
|
2013-04-24 01:37:34 +00:00
|
|
|
|
2012-03-06 05:47:22 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-09-10 20:39:53 +00:00
|
|
|
depends_on :macos => :lion # Needs a c++11 compiler
|
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
|
|
|
|
2014-01-11 04:10:26 +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'
|
2014-01-11 04:10:26 +00:00
|
|
|
ENV['SQLITE3_CFLAGS'] = '-I/usr/include'
|
|
|
|
ENV['SQLITE3_LIBS'] = '-L/usr/lib -lsqlite3'
|
2013-12-29 01:16:51 +00:00
|
|
|
|
2013-02-21 05:38:03 +00:00
|
|
|
system "./configure", *args
|
2009-09-07 12:21:11 +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
|
|
|
|
end
|