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