Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aria2: appletls is not available on 10.6 or earlier #8

Merged
merged 2 commits into from Nov 2, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions net/aria2/Portfile
Expand Up @@ -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 } {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just use

if {${os.platform} eq "darwin" && ${os.major} <= 10} {

and avoid the excess nesting.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that! Thanks.

configure.args-append "--without-appletls"
}
}