/[gentoo-x86]/net-misc/curl/curl-7.27.0-r2.ebuild
Gentoo

Contents of /net-misc/curl/curl-7.27.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Sep 1 16:57:57 2012 UTC (7 years, 3 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Rename USE=ares to adns, bug #433549

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/curl/curl-7.27.0-r2.ebuild,v 1.7 2012/08/26 18:17:33 armin76 Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils prefix
8
9 DESCRIPTION="A Client that groks URLs"
10 HOMEPAGE="http://curl.haxx.se/"
11 SRC_URI="http://curl.haxx.se/download/${P}.tar.bz2"
12
13 LICENSE="MIT"
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"
16 IUSE="ares idn ipv6 kerberos ldap metalink rtmp 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"
18
19 #lead to lots of false negatives, bug #285669
20 RESTRICT="test"
21
22 RDEPEND="ldap? ( net-nds/openldap )
23 ssl? (
24 curl_ssl_axtls? ( net-libs/axtls app-misc/ca-certificates )
25 curl_ssl_cyassl? ( net-libs/cyassl app-misc/ca-certificates )
26 curl_ssl_gnutls? (
27 || (
28 ( >=net-libs/gnutls-3[static-libs?] dev-libs/nettle )
29 ( =net-libs/gnutls-2.12*[nettle,static-libs?] dev-libs/nettle )
30 ( =net-libs/gnutls-2.12*[-nettle,static-libs?] dev-libs/libgcrypt[static-libs?] )
31 )
32 app-misc/ca-certificates
33 )
34 curl_ssl_openssl? ( dev-libs/openssl[static-libs?] )
35 curl_ssl_nss? ( dev-libs/nss app-misc/ca-certificates )
36 curl_ssl_polarssl? ( net-libs/polarssl app-misc/ca-certificates )
37 )
38 idn? ( net-dns/libidn[static-libs?] )
39 ares? ( net-dns/c-ares )
40 kerberos? ( virtual/krb5 )
41 metalink? ( >=media-libs/libmetalink-0.1.0 )
42 rtmp? ( media-video/rtmpdump )
43 ssh? ( net-libs/libssh2[static-libs?] )
44 sys-libs/zlib"
45
46 # Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
47 # rtmp? (
48 # media-video/rtmpdump
49 # curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
50 # curl_ssl_polarssl? ( media-video/rtmpdump[polarssl] )
51 # curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,-polarssl,ssl] )
52 # )
53
54 # ssl providers to be added:
55 # fbopenssl $(use_with spnego)
56
57 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
58
59 DEPEND="${RDEPEND}
60 sys-apps/ed
61 virtual/pkgconfig
62 test? (
63 sys-apps/diffutils
64 dev-lang/perl
65 )"
66
67 # ares must be disabled for threads
68 # only one ssl provider can be enabled
69 REQUIRED_USE="
70 threads? ( !ares )
71 ssl? (
72 ^^ (
73 curl_ssl_axtls
74 curl_ssl_cyassl
75 curl_ssl_gnutls
76 curl_ssl_openssl
77 curl_ssl_nss
78 curl_ssl_polarssl
79 )
80 )"
81
82 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
83 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
84
85 src_prepare() {
86 epatch \
87 "${FILESDIR}"/${PN}-7.27.0-curl-config.patch \
88 "${FILESDIR}"/${PN}-7.27.0-prefix.patch \
89 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
90 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch \
91 "${FILESDIR}"/${PN}-7.27.0-fix-nettle-include.patch \
92 "${FILESDIR}"/${PN}-7.27.0-fix-metalink-gnutls.patch
93 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
94
95 eprefixify curl-config.in
96 eautoreconf
97 }
98
99 src_configure() {
100 einfo "\033[1;32m**************************************************\033[00m"
101
102 # We make use of the fact that later flags override earlier ones
103 # So start with all ssl providers off until proven otherwise
104 local myconf=()
105 myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
106 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
107 if use ssl ; then
108 if use curl_ssl_axtls; then
109 einfo "SSL provided by axtls"
110 einfo "NOTE: axtls is meant for embedded systems and"
111 einfo "may not be the best choice as an ssl provider"
112 myconf+=( --with-axtls )
113 fi
114 if use curl_ssl_cyassl; then
115 einfo "SSL provided by cyassl"
116 einfo "NOTE: cyassl is meant for embedded systems and"
117 einfo "may not be the best choice as an ssl provider"
118 myconf+=( --with-cyassl )
119 fi
120 if use curl_ssl_gnutls; then
121 einfo "SSL provided by gnutls"
122 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
123 einfo "gnutls compiled with dev-libs/nettle"
124 myconf+=( --with-gnutls --with-nettle )
125 else
126 einfo "gnutls compiled with dev-libs/libgcrypt"
127 myconf+=( --with-gnutls --without-nettle )
128 fi
129 fi
130 if use curl_ssl_nss; then
131 einfo "SSL provided by nss"
132 myconf+=( --with-nss )
133 fi
134 if use curl_ssl_polarssl; then
135 einfo "SSL provided by polarssl"
136 einfo "NOTE: polarssl is meant for embedded systems and"
137 einfo "may not be the best choice as an ssl provider"
138 myconf+=( --with-polarssl )
139 fi
140 if use curl_ssl_openssl; then
141 einfo "SSL provided by openssl"
142 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
143 fi
144 else
145 einfo "SSL disabled"
146 fi
147 einfo "\033[1;32m**************************************************\033[00m"
148
149 # These configuration options are organized alphabetically
150 # within each category. This should make it easier if we
151 # ever decide to make any of them contingent on USE flags:
152 # 1) protocols first. To see them all do
153 # 'grep SUPPORT_PROTOCOLS configure.ac'
154 # 2) --enable/disable options second.
155 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
156 # 3) --with/without options third.
157 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
158 econf \
159 --enable-dict \
160 --enable-file \
161 --enable-ftp \
162 --enable-gopher \
163 --enable-http \
164 --enable-imap \
165 $(use_enable ldap) \
166 $(use_enable ldap ldaps) \
167 --enable-pop3 \
168 --enable-rtsp \
169 $(use_with ssh libssh2) \
170 --enable-smtp \
171 --enable-telnet \
172 --enable-tftp \
173 $(use_enable ares) \
174 --enable-cookies \
175 --enable-hidden-symbols \
176 $(use_enable ipv6) \
177 --enable-largefile \
178 --enable-manual \
179 --enable-nonblocking \
180 --enable-proxy \
181 --disable-soname-bump \
182 --disable-sspi \
183 $(use_enable static-libs static) \
184 $(use_enable threads threaded-resolver) \
185 --disable-versioned-symbols \
186 --without-darwinssl \
187 $(use_with idn libidn) \
188 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
189 --without-krb4 \
190 $(use_with metalink libmetalink) \
191 $(use_with rtmp librtmp) \
192 --without-spnego \
193 --without-winidn \
194 --without-winssl \
195 --with-zlib \
196 "${myconf[@]}"
197 }
198
199 src_install() {
200 default
201 find "${ED}" -name '*.la' -delete
202 rm -rf "${ED}"/etc/
203
204 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
205 insinto /usr/share/aclocal
206 doins docs/libcurl/libcurl.m4
207 }

  ViewVC Help
Powered by ViewVC 1.1.20