| 1 | # Copyright 1999-2011 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.21.4.ebuild,v 1.1 2011/02/19 17:23:00 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.21.4.ebuild,v 1.13 2012/01/26 19:20:26 vapier Exp $ |
| 4 | |
4 | |
| 5 | # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl! |
5 | # NOTE: If you bump this ebuild, make sure you bump dev-python/pycurl! |
| 6 | |
6 | |
| 7 | EAPI=4 |
7 | EAPI=4 |
| 8 | |
8 | |
| … | |
… | |
| 12 | HOMEPAGE="http://curl.haxx.se/" |
12 | HOMEPAGE="http://curl.haxx.se/" |
| 13 | SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
13 | SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2" |
| 14 | |
14 | |
| 15 | LICENSE="MIT" |
15 | LICENSE="MIT" |
| 16 | SLOT="0" |
16 | SLOT="0" |
| 17 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~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" |
17 | KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~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" |
| 18 | IUSE="ares gnutls idn ipv6 kerberos ldap libssh2 nss ssl static-libs test threads" |
18 | IUSE="ares gnutls idn ipv6 kerberos ldap nss ssh ssl static-libs test threads" |
| 19 | |
19 | |
| 20 | RDEPEND="ldap? ( net-nds/openldap ) |
20 | RDEPEND="ldap? ( net-nds/openldap ) |
| 21 | ssl? ( |
21 | ssl? ( |
| 22 | gnutls? ( net-libs/gnutls dev-libs/libgcrypt app-misc/ca-certificates ) |
22 | gnutls? ( net-libs/gnutls dev-libs/libgcrypt app-misc/ca-certificates ) |
| 23 | nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) ) |
23 | nss? ( !gnutls? ( dev-libs/nss app-misc/ca-certificates ) ) |
| 24 | !gnutls? ( !nss? ( dev-libs/openssl ) ) |
24 | !gnutls? ( !nss? ( dev-libs/openssl ) ) |
| 25 | ) |
25 | ) |
| 26 | idn? ( net-dns/libidn ) |
26 | idn? ( net-dns/libidn ) |
| 27 | ares? ( >=net-dns/c-ares-1.4.0 ) |
27 | ares? ( >=net-dns/c-ares-1.4.0 ) |
| 28 | kerberos? ( virtual/krb5 ) |
28 | kerberos? ( virtual/krb5 ) |
| 29 | libssh2? ( >=net-libs/libssh2-0.16 )" |
29 | ssh? ( >=net-libs/libssh2-0.16 )" |
| 30 | |
30 | |
| 31 | # rtmpdump ( media-video/rtmpdump ) / --with-librtmp |
31 | # rtmpdump ( media-video/rtmpdump ) / --with-librtmp |
| 32 | # fbopenssl (not in gentoo) --with-spnego |
32 | # fbopenssl (not in gentoo) --with-spnego |
| 33 | # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
33 | # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html |
| 34 | |
34 | |
| 35 | DEPEND="${RDEPEND} |
35 | DEPEND="${RDEPEND} |
|
|
36 | dev-util/pkgconfig |
| 36 | test? ( |
37 | test? ( |
| 37 | sys-apps/diffutils |
38 | sys-apps/diffutils |
| 38 | dev-lang/perl |
39 | dev-lang/perl |
| 39 | )" |
40 | )" |
| 40 | # used - but can do without in self test: net-misc/stunnel |
41 | # used - but can do without in self test: net-misc/stunnel |
| 41 | |
42 | |
| 42 | # ares must be disabled for threads |
43 | # ares must be disabled for threads and both can be disabled |
| 43 | # one can use wether gnutls or nss if ssl is enabled |
44 | # one can use wether gnutls or nss if ssl is enabled |
| 44 | REQUIRED_USE="^^ ( ares threads ) |
45 | REQUIRED_USE="threads? ( !ares ) |
| 45 | gnutls? ( ssl ) |
46 | gnutls? ( ssl ) |
| 46 | nss? ( ssl )" |
47 | nss? ( ssl )" |
| 47 | |
48 | |
| 48 | src_prepare() { |
49 | src_prepare() { |
| 49 | epatch "${FILESDIR}"/${PN}-7.20.0-strip-ldflags.patch \ |
50 | epatch "${FILESDIR}"/${PN}-7.20.0-strip-ldflags.patch \ |
| … | |
… | |
| 60 | |
61 | |
| 61 | myconf="$(use_enable ldap) |
62 | myconf="$(use_enable ldap) |
| 62 | $(use_enable ldap ldaps) |
63 | $(use_enable ldap ldaps) |
| 63 | $(use_with idn libidn) |
64 | $(use_with idn libidn) |
| 64 | $(use_with kerberos gssapi "${EPREFIX}"/usr) |
65 | $(use_with kerberos gssapi "${EPREFIX}"/usr) |
| 65 | $(use_with libssh2) |
66 | $(use_with ssh libssh2) |
| 66 | $(use_enable static-libs static) |
67 | $(use_enable static-libs static) |
| 67 | $(use_enable ipv6) |
68 | $(use_enable ipv6) |
| 68 | $(use_enable threads threaded-resolver) |
69 | $(use_enable threads threaded-resolver) |
| 69 | $(use_enable ares) |
70 | $(use_enable ares) |
| 70 | --enable-http |
71 | --enable-http |