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-04-07 01:03:12 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.5/aria2-1.18.5.tar.bz2'
|
|
|
|
sha1 '91639bf99a2e84873675f470fd36cee47f466770'
|
2013-04-24 01:37:34 +00:00
|
|
|
|
2014-03-28 02:42:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-04-07 01:11:51 +00:00
|
|
|
sha1 "33d1d04188a0da054cc3e2393b667f5cc232d9aa" => :mavericks
|
|
|
|
sha1 "9606a416e16801fa2a4f857d00ebddcc3703e3d0" => :mountain_lion
|
|
|
|
sha1 "6d10be34b7a6d03302b7119d5aa93959cb204d87" => :lion
|
2014-03-28 02:42:09 +00:00
|
|
|
end
|
|
|
|
|
2012-03-06 05:47:22 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
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
|
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
|