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