Skip to content
Permalink
Browse files

aria2: add c-ares variant, fix nettle dependency

add c-ares variant, rather than allowing for opportunistic linking
Closes: https://trac.macports.org/ticket/58660
nettle is not a global, but a gnutls dependency
Closes: https://trac.macports.org/ticket/58661
  • Loading branch information
Schamschula committed Jun 30, 2019
1 parent f7e86b1 commit b120a68e3998a929aae20b4571e49bc2c25bd56c
Showing with 8 additions and 4 deletions.
  1. +8 −4 net/aria2/Portfile
@@ -5,7 +5,7 @@ PortGroup github 1.0
PortGroup cxx11 1.1

github.setup aria2 aria2 1.34.0 release-
revision 2
revision 3
github.tarball_from releases
categories net
platforms darwin
@@ -25,8 +25,7 @@ depends_build-append port:pkgconfig
depends_lib-append port:gettext \
port:libiconv \
port:libuv \
port:libxml2 \
port:nettle
port:libxml2

# use_* must be defined after depends_*, otherwise the automatic dependencies
# will be overwritten.
@@ -39,8 +38,14 @@ configure.args --with-libiconv-prefix=${prefix} \
--with-libintl-prefix=${prefix} \
--with-libuv \
--with-xml-prefix=${prefix} \
--without-libcares \
--without-sqlite3

variant cares description {Add c-ares support} {
configure.args-replace --without-libcares --with-libcares
depends_lib-append port:c-ares
}

variant gnutls conflicts openssl description {Use GNU TLS instead of Apple built-in TLS library} {
configure.args-append --without-appletls \
--with-gnutls \
@@ -54,7 +59,6 @@ variant openssl conflicts gnutls description {Use OpenSSL instead of Apple built
--with-openssl \
--with-openssl-prefix=${prefix}
depends_lib-append path:lib/libssl.dylib:openssl
depends_lib-delete port:nettle
}

variant sqlite3 description {Add sqlite3 support} {

0 comments on commit b120a68

Please sign in to comment.
You can’t perform that action at this time.