| 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.2 2012/04/26 15:20:52 aballier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.25.0-r1.ebuild,v 1.10 2012/06/21 15:04:09 jer Exp $ |
| 4 | |
4 | |
| 5 | EAPI="4" |
5 | EAPI="4" |
| 6 | |
6 | |
| 7 | inherit autotools eutils prefix |
7 | inherit autotools eutils prefix |
| 8 | |
8 | |
| … | |
… | |
| 10 | HOMEPAGE="http://curl.haxx.se/" |
10 | HOMEPAGE="http://curl.haxx.se/" |
| 11 | SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
11 | SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
| 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_cyassl curl_ssl_gnutls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl" |
| 18 | |
18 | |
|
|
19 | #lead to lots of false negatives, bug #285669 |
|
|
20 | RESTRICT="test" |
|
|
21 | |
| 19 | RDEPEND="ldap? ( net-nds/openldap ) |
22 | RDEPEND="ldap? ( net-nds/openldap ) |
| 20 | ssl? ( |
23 | ssl? ( |
| 21 | curl_ssl_axtls? ( net-libs/axTLS app-misc/ca-certificates ) |
24 | curl_ssl_axtls? ( net-libs/axtls app-misc/ca-certificates ) |
| 22 | curl_ssl_gnutls? ( |
25 | curl_ssl_gnutls? ( |
| 23 | || ( |
26 | || ( |
| 24 | ( <=net-libs/gnutls-2.10.5 dev-libs/libgcrypt[static-libs?] app-misc/ca-certificates ) |
27 | ( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle ) |
|
|
28 | ( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle ) |
| 25 | ( net-libs/gnutls[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] app-misc/ca-certificates ) |
29 | ( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] ) |
| 26 | ( net-libs/gnutls[nettle,static-libs?] dev-libs/nettle app-misc/ca-certificates ) |
30 | ( <net-libs/gnutls-2.12 dev-libs/libgcrypt[static-libs?] ) |
| 27 | ) |
31 | ) |
|
|
32 | app-misc/ca-certificates |
| 28 | ) |
33 | ) |
| 29 | curl_ssl_openssl? ( dev-libs/openssl[static-libs?] ) |
34 | curl_ssl_openssl? ( dev-libs/openssl[static-libs?] ) |
| 30 | curl_ssl_nss? ( dev-libs/nss app-misc/ca-certificates ) |
35 | curl_ssl_nss? ( dev-libs/nss app-misc/ca-certificates ) |
| 31 | curl_ssl_polarssl? ( net-libs/polarssl app-misc/ca-certificates ) |
36 | curl_ssl_polarssl? ( net-libs/polarssl app-misc/ca-certificates ) |
| 32 | ) |
37 | ) |
| … | |
… | |
| 42 | # rtmpdump ( media-video/rtmpdump ) / --with-librtmp |
47 | # rtmpdump ( media-video/rtmpdump ) / --with-librtmp |
| 43 | # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
48 | # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
| 44 | |
49 | |
| 45 | DEPEND="${RDEPEND} |
50 | DEPEND="${RDEPEND} |
| 46 | sys-apps/ed |
51 | sys-apps/ed |
| 47 | dev-util/pkgconfig |
52 | virtual/pkgconfig |
| 48 | test? ( |
53 | test? ( |
| 49 | sys-apps/diffutils |
54 | sys-apps/diffutils |
| 50 | dev-lang/perl |
55 | dev-lang/perl |
| 51 | )" |
56 | )" |
| 52 | # used - but can do without in self test: net-misc/stunnel |
57 | # used - but can do without in self test: net-misc/stunnel |
| … | |
… | |
| 88 | local myconf=() |
93 | local myconf=() |
| 89 | myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl ) |
94 | myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl ) |
| 90 | myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
95 | myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
| 91 | if use ssl ; then |
96 | if use ssl ; then |
| 92 | if use curl_ssl_axtls; then |
97 | if use curl_ssl_axtls; then |
| 93 | einfo "SSL provided by axTLS" |
98 | einfo "SSL provided by axtls" |
| 94 | einfo "NOTE: axTLS is meant for embedded systems and" |
99 | einfo "NOTE: axtls is meant for embedded systems and" |
| 95 | einfo "may not be the best choice as an ssl provider" |
100 | einfo "may not be the best choice as an ssl provider" |
| 96 | myconf+=( --with-axtls ) |
101 | myconf+=( --with-axtls ) |
| 97 | fi |
102 | fi |
| 98 | if use curl_ssl_cyassl; then |
103 | if use curl_ssl_cyassl; then |
| 99 | einfo "SSL provided by cyassl" |
104 | einfo "SSL provided by cyassl" |
| … | |
… | |
| 101 | einfo "may not be the best choice as an ssl provider" |
106 | einfo "may not be the best choice as an ssl provider" |
| 102 | myconf+=( --with-cyassl ) |
107 | myconf+=( --with-cyassl ) |
| 103 | fi |
108 | fi |
| 104 | if use curl_ssl_gnutls; then |
109 | if use curl_ssl_gnutls; then |
| 105 | einfo "SSL provided by gnutls" |
110 | einfo "SSL provided by gnutls" |
| 106 | if has_version net-libs/gnutls[nettle] ; then |
111 | if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then |
| 107 | einfo "gnutls compiled with dev-libs/nettle" |
112 | einfo "gnutls compiled with dev-libs/nettle" |
| 108 | myconf+=( --with-gnutls --with-nettle ) |
113 | myconf+=( --with-gnutls --with-nettle ) |
| 109 | else |
114 | else |
| 110 | einfo "gnutls compiled with dev-libs/libgcrypt" |
115 | einfo "gnutls compiled with dev-libs/libgcrypt" |
| 111 | myconf+=( --with-gnutls --without-nettle ) |
116 | myconf+=( --with-gnutls --without-nettle ) |