Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/curl/
Date: Sat, 25 Feb 2017 11:21:33
Message-Id: 1488021680.4137e04f6a7008372e7eeef572f184b253007ea0.blueness@gentoo
1 commit: 4137e04f6a7008372e7eeef572f184b253007ea0
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 25 11:20:58 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 25 11:21:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4137e04f
7
8 net-misc/curl: version bump to 7.53.1
9
10 Package-Manager: portage-2.3.3
11
12 net-misc/curl/Manifest | 1 +
13 net-misc/curl/curl-7.53.1.ebuild | 251 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 252 insertions(+)
15
16 diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest
17 index 4b962cb723..58b23fd016 100644
18 --- a/net-misc/curl/Manifest
19 +++ b/net-misc/curl/Manifest
20 @@ -1,2 +1,3 @@
21 DIST curl-7.52.1.tar.bz2 2600476 SHA256 d16185a767cb2c1ba3d5b9096ec54e5ec198b213f45864a38b3bda4bbf87389b SHA512 cf36563c77d096f2c6084354ed6d45ccca7c557828ceab21204e4e8be0d4f0d287839c8cfac906174b86d51a1ee816c2769fc78ef88f039c9645bd2c27982a75 WHIRLPOOL cb0bb74de3fb650e627cf66e23b8126837ddd6d3006934aa1b1a8597182f992b29e80e0c76aef1234f62cfa9688c5b10b781f6b2bc7e5127f8bc5a67d57665c1
22 DIST curl-7.53.0.tar.bz2 2612491 SHA256 b2345a8bef87b4c229dedf637cb203b5e21db05e20277c8e1094f0d4da180801 SHA512 1fc3264dd52f6f16463de158b4ab4637ba698b1fdbf01b7a3c05ae80b06a5480323b748b31f771c969a5f7062aa9e41a1aad8677be220a411d3cbad24581baf2 WHIRLPOOL 44a7b1d60b097856bc002d7aa1a89d93d5616b33a59a41703dc3dbe369733a63afcfd093b4374e263d05b60bd38e09f955b1921f12798cff3d400311fa4c7bdb
23 +DIST curl-7.53.1.tar.bz2 2609559 SHA256 1c7207c06d75e9136a944a2e0528337ce76f15b9ec9ae4bb30d703b59bf530e8 SHA512 c668494d0e795f34b00505ca68ab41fbb475a1bccbcac1d0bbacbbbafa40a994472e100be18a0c10f8fa21b5b9bd3f4e66c1e68ff5423b13b82d829cbaefcd52 WHIRLPOOL bf5f0a795a2612284e84fa7917351b2d41370bda0efc84f2e21456f7110f1f1f6cbf52b0956b0ba586cdcafbbaad5e47bfea82bf37cde39434a18ee5d0dbfdaf
24
25 diff --git a/net-misc/curl/curl-7.53.1.ebuild b/net-misc/curl/curl-7.53.1.ebuild
26 new file mode 100644
27 index 0000000000..70d954a810
28 --- /dev/null
29 +++ b/net-misc/curl/curl-7.53.1.ebuild
30 @@ -0,0 +1,251 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI="6"
36 +
37 +inherit autotools eutils prefix multilib-minimal
38 +
39 +DESCRIPTION="A Client that groks URLs"
40 +HOMEPAGE="https://curl.haxx.se/"
41 +SRC_URI="https://curl.haxx.se/download/${P}.tar.bz2"
42 +
43 +LICENSE="MIT"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE="adns http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads"
47 +IUSE+=" curl_ssl_axtls curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_polarssl curl_ssl_winssl"
48 +IUSE+=" elibc_Winnt"
49 +
50 +#lead to lots of false negatives, bug #285669
51 +RESTRICT="test"
52 +
53 +RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
54 + ssl? (
55 + curl_ssl_axtls? (
56 + net-libs/axtls:0=[${MULTILIB_USEDEP}]
57 + app-misc/ca-certificates
58 + )
59 + curl_ssl_gnutls? (
60 + net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}]
61 + dev-libs/nettle:0=[${MULTILIB_USEDEP}]
62 + app-misc/ca-certificates
63 + )
64 + curl_ssl_libressl? (
65 + dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}]
66 + )
67 + curl_ssl_mbedtls? (
68 + net-libs/mbedtls:0=[${MULTILIB_USEDEP}]
69 + app-misc/ca-certificates
70 + )
71 + curl_ssl_openssl? (
72 + dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}]
73 + )
74 + curl_ssl_nss? (
75 + dev-libs/nss:0[${MULTILIB_USEDEP}]
76 + app-misc/ca-certificates
77 + )
78 + curl_ssl_polarssl? (
79 + net-libs/polarssl:0=[${MULTILIB_USEDEP}]
80 + app-misc/ca-certificates
81 + )
82 + )
83 + http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] )
84 + idn? ( net-dns/libidn2:0[static-libs?,${MULTILIB_USEDEP}] )
85 + adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] )
86 + kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
87 + metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] )
88 + rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] )
89 + ssh? ( net-libs/libssh2[static-libs?,${MULTILIB_USEDEP}] )
90 + sys-libs/zlib[${MULTILIB_USEDEP}]
91 + abi_x86_32? (
92 + !<=app-emulation/emul-linux-x86-baselibs-20140508-r13
93 + !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
94 + )"
95 +
96 +# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
97 +# rtmp? (
98 +# media-video/rtmpdump
99 +# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
100 +# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
101 +# )
102 +
103 +# ssl providers to be added:
104 +# fbopenssl $(use_with spnego)
105 +
106 +DEPEND="${RDEPEND}
107 + >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
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_gnutls
122 + curl_ssl_libressl
123 + curl_ssl_mbedtls
124 + curl_ssl_nss
125 + curl_ssl_openssl
126 + curl_ssl_polarssl
127 + curl_ssl_winssl
128 + )
129 + )"
130 +
131 +DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \
132 + docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE.md )
133 +
134 +MULTILIB_WRAPPED_HEADERS=(
135 + /usr/include/curl/curlbuild.h
136 +)
137 +
138 +MULTILIB_CHOST_TOOLS=(
139 + /usr/bin/curl-config
140 +)
141 +
142 +src_prepare() {
143 + eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch
144 + eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch
145 + eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch
146 +
147 + sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
148 +
149 + eapply_user
150 + eprefixify curl-config.in
151 + eautoreconf
152 +}
153 +
154 +multilib_src_configure() {
155 + # We make use of the fact that later flags override earlier ones
156 + # So start with all ssl providers off until proven otherwise
157 + local myconf=()
158 + myconf+=( --without-axtls --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl )
159 + myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
160 + if use ssl ; then
161 + if use curl_ssl_axtls; then
162 + einfo "SSL provided by axtls"
163 + myconf+=( --with-axtls )
164 + elif use curl_ssl_gnutls; then
165 + einfo "SSL provided by gnutls"
166 + myconf+=( --with-gnutls --with-nettle )
167 + elif use curl_ssl_libressl; then
168 + einfo "SSL provided by LibreSSL"
169 + myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
170 + elif use curl_ssl_mbedtls; then
171 + einfo "SSL provided by mbedtls"
172 + myconf+=( --with-mbedtls )
173 + elif use curl_ssl_nss; then
174 + einfo "SSL provided by nss"
175 + myconf+=( --with-nss )
176 + elif use curl_ssl_polarssl; then
177 + einfo "SSL provided by polarssl"
178 + myconf+=( --with-polarssl )
179 + elif use curl_ssl_openssl; then
180 + einfo "SSL provided by openssl"
181 + myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
182 + elif use curl_ssl_winssl; then
183 + einfo "SSL provided by Windows"
184 + myconf+=( --with-winssl )
185 + else
186 + eerror "We can't be here because of REQUIRED_USE."
187 + fi
188 + else
189 + einfo "SSL disabled"
190 + fi
191 +
192 + # These configuration options are organized alphabetically
193 + # within each category. This should make it easier if we
194 + # ever decide to make any of them contingent on USE flags:
195 + # 1) protocols first. To see them all do
196 + # 'grep SUPPORT_PROTOCOLS configure.ac'
197 + # 2) --enable/disable options second.
198 + # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
199 + # 3) --with/without options third.
200 + # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
201 + ECONF_SOURCE="${S}" \
202 + econf \
203 + --enable-crypto-auth \
204 + --enable-dict \
205 + --enable-file \
206 + --enable-ftp \
207 + --enable-gopher \
208 + --enable-http \
209 + --enable-imap \
210 + $(use_enable ldap) \
211 + $(use_enable ldap ldaps) \
212 + --disable-ntlm-wb \
213 + --enable-pop3 \
214 + --enable-rt \
215 + --enable-rtsp \
216 + $(use_enable samba smb) \
217 + $(use_with ssh libssh2) \
218 + --enable-smtp \
219 + --enable-telnet \
220 + --enable-tftp \
221 + --enable-tls-srp \
222 + $(use_enable adns ares) \
223 + --enable-cookies \
224 + --enable-hidden-symbols \
225 + $(use_enable ipv6) \
226 + --enable-largefile \
227 + --without-libpsl \
228 + --enable-manual \
229 + --enable-proxy \
230 + --disable-soname-bump \
231 + --disable-sspi \
232 + $(use_enable static-libs static) \
233 + $(use_enable threads threaded-resolver) \
234 + $(use_enable threads pthreads) \
235 + --disable-versioned-symbols \
236 + --without-cyassl \
237 + --without-darwinssl \
238 + $(use_with idn libidn2) \
239 + $(use_with kerberos gssapi "${EPREFIX}"/usr) \
240 + $(use_with metalink libmetalink) \
241 + $(use_with http2 nghttp2) \
242 + $(use_with rtmp librtmp) \
243 + --without-spnego \
244 + --without-winidn \
245 + --with-zlib \
246 + "${myconf[@]}"
247 +
248 + if ! multilib_is_native_abi; then
249 + # avoid building the client
250 + sed -i -e '/SUBDIRS/s:src::' Makefile || die
251 + sed -i -e '/SUBDIRS/s:scripts::' Makefile || die
252 + fi
253 +
254 + # Fix up the pkg-config file to be more robust.
255 + # https://github.com/curl/curl/issues/864
256 + local priv=() libs=()
257 + # We always enable zlib.
258 + libs+=( "-lz" )
259 + priv+=( "zlib" )
260 + if use http2; then
261 + libs+=( "-lnghttp2" )
262 + priv+=( "libnghttp2" )
263 + fi
264 + if use curl_ssl_openssl; then
265 + libs+=( "-lssl" "-lcrypto" )
266 + priv+=( "openssl" )
267 + fi
268 + grep -q Requires.private libcurl.pc && die "need to update ebuild"
269 + libs=$(printf '|%s' "${libs[@]}")
270 + sed -i -r \
271 + -e "/^Libs.private/s:(${libs#|})( |$)::g" \
272 + libcurl.pc || die
273 + echo "Requires.private: ${priv[*]}" >> libcurl.pc
274 +}
275 +
276 +multilib_src_install_all() {
277 + einstalldocs
278 + prune_libtool_files --all
279 +
280 + rm -rf "${ED}"/etc/
281 +}