aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/aria2.rb
diff options
context:
space:
mode:
authorJack Nagel2013-11-29 11:13:44 -0600
committerJack Nagel2013-11-29 11:52:21 -0600
commita8d51dfbce39c8695dfcb56793483badd2c735cc (patch)
tree51e4bf30bb3c27c0915d640c4fe74c4b9858464f /Library/Formula/aria2.rb
parent87d3715e3f5c85da225f7c33e52bb6b69558d59c (diff)
downloadhomebrew-a8d51dfbce39c8695dfcb56793483badd2c735cc.tar.bz2
aria2: always build with Apple TLS support
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. Fixes #24709.
Diffstat (limited to 'Library/Formula/aria2.rb')
-rw-r--r--Library/Formula/aria2.rb22
1 files changed, 10 insertions, 12 deletions
diff --git a/Library/Formula/aria2.rb b/Library/Formula/aria2.rb
index f344def4c..ac4473db5 100644
--- a/Library/Formula/aria2.rb
+++ b/Library/Formula/aria2.rb
@@ -5,22 +5,20 @@ class Aria2 < Formula
url 'http://downloads.sourceforge.net/project/aria2/stable/aria2-1.18.1/aria2-1.18.1.tar.bz2'
sha1 '050f521848353fe90568059768d73a5a6f7ff869'
- option 'with-appletls', 'Build with Secure Transport for SSL support'
-
depends_on 'pkg-config' => :build
- depends_on 'gnutls' unless build.with? 'appletls'
- depends_on 'curl-ca-bundle' => :recommended
depends_on :macos => :lion # Needs a c++11 compiler
def install
- args = %W[--disable-dependency-tracking --prefix=#{prefix}]
- args << "--with-ca-bundle=#{HOMEBREW_PREFIX}/share/ca-bundle.crt" if build.with? 'curl-ca-bundle'
- if build.with? 'appletls'
- args << "--with-appletls"
- else
- args << "--without-appletls"
- end
-
+ args = %W[
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ --with-appletls
+ --without-openssl
+ --without-gnutls
+ --without-libgmp
+ --without-libnettle
+ --without-libgcrypt
+ ]
system "./configure", *args
system "make install"