Skip to content

Commit

Permalink
aria2: always build with Apple TLS support
Browse files Browse the repository at this point in the history
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 Homebrew/legacy-homebrew#24709.
  • Loading branch information
jacknagel committed Nov 29, 2013
1 parent 702b9fa commit 1c39ca4
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Formula/aria2.rb
Expand Up @@ -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"

Expand Down

0 comments on commit 1c39ca4

Please sign in to comment.