aria2 requires C++11, so its C++ dependencies (gnutls, gmp) must have
C++11 options as well, unless we use Apple's built-in TLS support
instead.
FixesHomebrew/homebrew#24709.
gnutls isn't required when the user asks for aria2 to be brewed
`--with-appletls`.
ClosesHomebrew/homebrew#22561.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.
Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
The version was updated from 1.8.2 to 1.9.0. 1.8.2 was no longer
available at the specified download location and installation was
failing because a 404 was returned when attempting to download aria2
1.8.2.
Signed-off-by: David Höppner <0xffea@gmail.com>
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
aria2 is a multi-protocol & multi-source, cross platform download utility. The
supported protocols are HTTP(S), FTP, BitTorrent (DHT, PEX, MSE/PE and
WEB-Seeding), and Metalink.