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.34.0-r1.ebuild ChangeLog curl-7.34.0.ebuild
Date: Fri, 27 Dec 2013 16:49:51
Message-Id: 20131227164947.DB8712004C@flycatcher.gentoo.org
1 blueness 13/12/27 16:49:47
2
3 Modified: ChangeLog
4 Added: curl-7.34.0-r1.ebuild
5 Removed: curl-7.34.0.ebuild
6 Log:
7 Add patch for bug #495170
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.316 net-misc/curl/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?rev=1.316&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?rev=1.316&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/ChangeLog?r1=1.315&r2=1.316
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v
21 retrieving revision 1.315
22 retrieving revision 1.316
23 diff -u -r1.315 -r1.316
24 --- ChangeLog 26 Dec 2013 23:21:57 -0000 1.315
25 +++ ChangeLog 27 Dec 2013 16:49:47 -0000 1.316
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-misc/curl
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v 1.315 2013/12/26 23:21:57 mgorny Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/curl/ChangeLog,v 1.316 2013/12/27 16:49:47 blueness Exp $
31 +
32 +*curl-7.34.0-r1 (27 Dec 2013)
33 +
34 + 27 Dec 2013; Anthony G. Basile <blueness@g.o> +curl-7.34.0-r1.ebuild,
35 + +files/curl-7.34.0-fix-ipv6-failover.patch, -curl-7.34.0.ebuild:
36 + Add patch for bug #495170
37
38 26 Dec 2013; Michał Górny <mgorny@g.o> curl-7.34.0.ebuild:
39 Add epatch_user call to make patch testing easier.
40
41
42
43 1.1 net-misc/curl/curl-7.34.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/curl-7.34.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/curl/curl-7.34.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: curl-7.34.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 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.34.0-r1.ebuild,v 1.1 2013/12/27 16:49:47 blueness Exp $
53
54 EAPI="5"
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 ~arm-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_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
100 # )
101
102 # ssl providers to be added:
103 # fbopenssl $(use_with spnego)
104
105 # krb4 http://web.mit.edu/kerberos/www/krb4-end-of-life.html
106
107 DEPEND="${RDEPEND}
108 virtual/pkgconfig
109 test? (
110 sys-apps/diffutils
111 dev-lang/perl
112 )"
113
114 # c-ares must be disabled for threads
115 # only one ssl provider can be enabled
116 REQUIRED_USE="
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 )
127 )"
128
129 DOCS=( CHANGES README docs/FEATURES docs/INTERNALS \
130 docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE)
131
132 src_prepare() {
133 epatch \
134 "${FILESDIR}"/${PN}-7.30.0-prefix.patch \
135 "${FILESDIR}"/${PN}-respect-cflags-3.patch \
136 "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch \
137 "${FILESDIR}"/${P}-fix-ipv6-failover.patch
138 sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
139
140 epatch_user
141 eprefixify curl-config.in
142 eautoreconf
143 }
144
145 src_configure() {
146 einfo "\033[1;32m**************************************************\033[00m"
147
148 # We make use of the fact that later flags override earlier ones
149 # So start with all ssl providers off until proven otherwise
150 local myconf=()
151 myconf+=( --without-axtls --without-cyassl --without-gnutls --without-nss --without-polarssl --without-ssl )
152 myconf+=( --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
153 if use ssl ; then
154 if use curl_ssl_axtls; then
155 einfo "SSL provided by axtls"
156 einfo "NOTE: axtls is meant for embedded systems and"
157 einfo "may not be the best choice as an ssl provider"
158 myconf+=( --with-axtls )
159 fi
160 if use curl_ssl_cyassl; then
161 einfo "SSL provided by cyassl"
162 einfo "NOTE: cyassl is meant for embedded systems and"
163 einfo "may not be the best choice as an ssl provider"
164 myconf+=( --with-cyassl )
165 fi
166 if use curl_ssl_gnutls; then
167 einfo "SSL provided by gnutls"
168 if has_version ">=net-libs/gnutls-3" || has_version "=net-libs/gnutls-2.12*[nettle]"; then
169 einfo "gnutls compiled with dev-libs/nettle"
170 myconf+=( --with-gnutls --with-nettle )
171 else
172 einfo "gnutls compiled with dev-libs/libgcrypt"
173 myconf+=( --with-gnutls --without-nettle )
174 fi
175 fi
176 if use curl_ssl_nss; then
177 einfo "SSL provided by nss"
178 myconf+=( --with-nss )
179 fi
180 if use curl_ssl_polarssl; then
181 einfo "SSL provided by polarssl"
182 einfo "NOTE: polarssl is meant for embedded systems and"
183 einfo "may not be the best choice as an ssl provider"
184 myconf+=( --with-polarssl )
185 fi
186 if use curl_ssl_openssl; then
187 einfo "SSL provided by openssl"
188 myconf+=( --with-ssl --without-ca-bundle --with-ca-path="${EPREFIX}"/etc/ssl/certs )
189 fi
190 else
191 einfo "SSL disabled"
192 fi
193 einfo "\033[1;32m**************************************************\033[00m"
194
195 # These configuration options are organized alphabetically
196 # within each category. This should make it easier if we
197 # ever decide to make any of them contingent on USE flags:
198 # 1) protocols first. To see them all do
199 # 'grep SUPPORT_PROTOCOLS configure.ac'
200 # 2) --enable/disable options second.
201 # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
202 # 3) --with/without options third.
203 # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
204 econf \
205 --enable-dict \
206 --enable-file \
207 --enable-ftp \
208 --enable-gopher \
209 --enable-http \
210 --enable-imap \
211 $(use_enable ldap) \
212 $(use_enable ldap ldaps) \
213 --enable-pop3 \
214 --enable-rtsp \
215 $(use_with ssh libssh2) \
216 --enable-smtp \
217 --enable-telnet \
218 --enable-tftp \
219 $(use_enable adns ares) \
220 --enable-cookies \
221 --enable-hidden-symbols \
222 $(use_enable ipv6) \
223 --enable-largefile \
224 --enable-manual \
225 --enable-proxy \
226 --disable-soname-bump \
227 --disable-sspi \
228 $(use_enable static-libs static) \
229 $(use_enable threads threaded-resolver) \
230 --disable-versioned-symbols \
231 --without-darwinssl \
232 $(use_with idn libidn) \
233 $(use_with kerberos gssapi "${EPREFIX}"/usr) \
234 --without-krb4 \
235 $(use_with metalink libmetalink) \
236 --without-nghttp2 \
237 $(use_with rtmp librtmp) \
238 --without-spnego \
239 --without-winidn \
240 --without-winssl \
241 --with-zlib \
242 "${myconf[@]}"
243 }
244
245 src_install() {
246 default
247 find "${ED}" -name '*.la' -delete
248 rm -rf "${ED}"/etc/
249
250 # https://sourceforge.net/tracker/index.php?func=detail&aid=1705197&group_id=976&atid=350976
251 insinto /usr/share/aclocal
252 doins docs/libcurl/libcurl.m4
253 }