| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.25.0-r1.ebuild,v 1.13 2012/06/28 12:48:46 ranger Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.25.0-r1.ebuild,v 1.14 2012/07/19 20:19:49 blueness Exp $ |
| 4 | |
4 | |
| 5 | EAPI="4" |
5 | EAPI="4" |
| 6 | |
6 | |
| 7 | inherit autotools eutils prefix |
7 | inherit autotools eutils prefix |
| 8 | |
8 | |
| … | |
… | |
| 12 | |
12 | |
| 13 | LICENSE="MIT" |
13 | LICENSE="MIT" |
| 14 | SLOT="0" |
14 | SLOT="0" |
| 15 | KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
15 | KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
| 16 | IUSE="ares idn ipv6 kerberos ldap ssh ssl static-libs test threads" |
16 | IUSE="ares idn ipv6 kerberos ldap ssh ssl static-libs test threads" |
| 17 | IUSE="${IUSE} curl_ssl_axtls curl_ssl_cyassl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl" |
17 | IUSE="${IUSE} curl_ssl_axtls curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl" |
| 18 | |
18 | |
| 19 | #lead to lots of false negatives, bug #285669 |
19 | #lead to lots of false negatives, bug #285669 |
| 20 | RESTRICT="test" |
20 | RESTRICT="test" |
| 21 | |
21 | |
| 22 | RDEPEND="ldap? ( net-nds/openldap ) |
22 | RDEPEND="ldap? ( net-nds/openldap ) |
| … | |
… | |
| 60 | # only one ssl provider can be enabled |
60 | # only one ssl provider can be enabled |
| 61 | REQUIRED_USE="threads? ( !ares ) |
61 | REQUIRED_USE="threads? ( !ares ) |
| 62 | ssl? ( |
62 | ssl? ( |
| 63 | ^^ ( |
63 | ^^ ( |
| 64 | curl_ssl_axtls |
64 | curl_ssl_axtls |
| 65 | curl_ssl_cyassl |
|
|
| 66 | curl_ssl_gnutls |
65 | curl_ssl_gnutls |
| 67 | curl_ssl_openssl |
66 | curl_ssl_openssl |
| 68 | curl_ssl_nss |
67 | curl_ssl_nss |
| 69 | curl_ssl_polarssl |
68 | curl_ssl_polarssl |
| 70 | ) |
69 | ) |
| … | |
… | |
| 97 | if use curl_ssl_axtls; then |
96 | if use curl_ssl_axtls; then |
| 98 | einfo "SSL provided by axtls" |
97 | einfo "SSL provided by axtls" |
| 99 | einfo "NOTE: axtls is meant for embedded systems and" |
98 | einfo "NOTE: axtls is meant for embedded systems and" |
| 100 | einfo "may not be the best choice as an ssl provider" |
99 | einfo "may not be the best choice as an ssl provider" |
| 101 | myconf+=( --with-axtls ) |
100 | myconf+=( --with-axtls ) |
| 102 | fi |
|
|
| 103 | if use curl_ssl_cyassl; then |
|
|
| 104 | einfo "SSL provided by cyassl" |
|
|
| 105 | einfo "NOTE: cyassl is meant for embedded systems and" |
|
|
| 106 | einfo "may not be the best choice as an ssl provider" |
|
|
| 107 | myconf+=( --with-cyassl ) |
|
|
| 108 | fi |
101 | fi |
| 109 | if use curl_ssl_gnutls; then |
102 | if use curl_ssl_gnutls; then |
| 110 | einfo "SSL provided by gnutls" |
103 | einfo "SSL provided by gnutls" |
| 111 | if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then |
104 | if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then |
| 112 | einfo "gnutls compiled with dev-libs/nettle" |
105 | einfo "gnutls compiled with dev-libs/nettle" |