Gentoo Archives: gentoo-commits

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