From 030452a007e0f4fecb8e7bea137720a18552a438 Mon Sep 17 00:00:00 2001 From: Ken Cunningham Date: Tue, 1 Nov 2016 18:46:52 -0700 Subject: [PATCH 1/2] aria2: appletls is not available on 10.6 or earlier --- net/aria2/Portfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/aria2/Portfile b/net/aria2/Portfile index a7e41734a1a42..f4667434f22fb 100644 --- a/net/aria2/Portfile +++ b/net/aria2/Portfile @@ -35,3 +35,10 @@ configure.args --with-gnutls --with-libgnutls-prefix=${prefix} \ --with-libintl-prefix=${prefix} \ --with-xml-prefix=${prefix} \ --without-sqlite3 + +# appletls not available on 10.6 or earlier +platform darwin { + if { ${os.major} <= 10 } { + configure.args-append "--without-appletls" + } +} From a46636c2c92be19375e74dd67bdb1a456183c682 Mon Sep 17 00:00:00 2001 From: Ken Cunningham Date: Wed, 2 Nov 2016 09:50:44 -0700 Subject: [PATCH 2/2] altered guard block as suggested --- net/aria2/Portfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/aria2/Portfile b/net/aria2/Portfile index f4667434f22fb..6f29c4f9b8861 100644 --- a/net/aria2/Portfile +++ b/net/aria2/Portfile @@ -37,8 +37,6 @@ configure.args --with-gnutls --with-libgnutls-prefix=${prefix} \ --without-sqlite3 # appletls not available on 10.6 or earlier -platform darwin { - if { ${os.major} <= 10 } { +if {${os.platform} eq "darwin" && ${os.major} <= 10} { configure.args-append "--without-appletls" - } }