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: Thu, 05 Mar 2020 12:44:31
Message-Id: 1583412249.4d8215e76bf42edbf96d9bff3774b763d562a95f.blueness@gentoo
1 commit: 4d8215e76bf42edbf96d9bff3774b763d562a95f
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 5 12:44:09 2020 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 5 12:44:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d8215e7
7
8 net-misc/curl: remove vulnerable versions, bug #694020
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
12
13 net-misc/curl/Manifest | 2 -
14 net-misc/curl/curl-7.65.0.ebuild | 238 -------------------------------------
15 net-misc/curl/curl-7.65.3.ebuild | 246 ---------------------------------------
16 3 files changed, 486 deletions(-)
17
18 diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest
19 index 98b639ef13e..69230ee055a 100644
20 --- a/net-misc/curl/Manifest
21 +++ b/net-misc/curl/Manifest
22 @@ -1,5 +1,3 @@
23 -DIST curl-7.65.0.tar.xz 2392324 BLAKE2B e5aec8c6cb6f6baabd035ce2ea159dba1541011658892bb883e917541aaffe6ebfb0d2b9f18e2357059a7bc1e3a8db47b2aed7a74597b21c14f0892ad6e9eb68 SHA512 032c065c1d4bd07ba028625f8fab6a09e7cb8505a5f19339b3abdee5a9cda7d091c11f075fe3fc227d082690a66c558c770a4cd9fb17b52acc13794976a770c5
24 -DIST curl-7.65.3.tar.xz 2392472 BLAKE2B 25726e1f1568fad6a8419b29dde41bed4d9de4be70740119879beeb08ff2a6ace7737efe1fb6d96ecaacaf8f90dc0142ceede2b90c84275ea8f72bcd09f21dba SHA512 fc4f041d3d6682378ce9eef2c6081e6ad83bb2502ea4c992c760266584c09e9ebca7c6d35958bd32a888702d9308cbce7aef69c431f97994107d7ff6b953941b
25 DIST curl-7.66.0.tar.xz 2414840 BLAKE2B f5d731c304c826442a8509016d00b9c68438ef9102b3c844c15315181c307e338f79930dc548d7f189b944dd74cc7eeb19d130b5a967ea2efa9862d15ae78bab SHA512 81170e7e4fa9d99ee2038d96d7f2ab10dcf52435331c818c7565c1a733891720f845a08029915e52ba532c6a344c346e1678474624aac1cc333aea6d1eacde35
26 DIST curl-7.67.0.tar.xz 2418548 BLAKE2B 818b3d03ac8c4adb8a629147feccebcbd3d89164a77d7cb457924bd44c3069f1b03326861b73c51a6427d7169d40485a509f74edd89b99b760649e7adcdce693 SHA512 1d5a344be92dd61b1ba5189eff0fe337e492f2e850794943570fe71c985d0af60bd412082be646e07aaa8639908593e1ce4bb2d07db35394ec377e8ce8b9ae29
27 DIST curl-7.68.0.tar.xz 2442788 BLAKE2B d72dbf3c4d6ef7259f0dc9b5347f9289067807246ce6aaab03f3a9c04c17328a8315261dbc08390096571bcad3bbb185a70d15ce83687d7e792bee37318bf269 SHA512 bf365609c9a66a05b3a263d02bcd3f81f905570c5739c8ec522a296b4b8e2a479d64d5524e8345e14eafad28995ee22d923522f1a45fa40eb46db38759c2eb2c
28
29 diff --git a/net-misc/curl/curl-7.65.0.ebuild b/net-misc/curl/curl-7.65.0.ebuild
30 deleted file mode 100644
31 index a34b455658e..00000000000
32 --- a/net-misc/curl/curl-7.65.0.ebuild
33 +++ /dev/null
34 @@ -1,238 +0,0 @@
35 -# Copyright 1999-2020 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI="7"
39 -
40 -inherit autotools eutils prefix multilib-minimal
41 -
42 -DESCRIPTION="A Client that groks URLs"
43 -HOMEPAGE="https://curl.haxx.se/"
44 -SRC_URI="https://curl.haxx.se/download/${P}.tar.xz"
45 -
46 -LICENSE="MIT"
47 -SLOT="0"
48 -KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~riscv s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 -IUSE="adns brotli http2 idn ipv6 kerberos ldap metalink rtmp samba ssh ssl static-libs test threads"
50 -IUSE+=" curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_winssl"
51 -IUSE+=" elibc_Winnt"
52 -
53 -#lead to lots of false negatives, bug #285669
54 -RESTRICT="test"
55 -
56 -RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
57 - brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] )
58 - ssl? (
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 - )
79 - http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] )
80 - idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] )
81 - adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] )
82 - kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
83 - metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] )
84 - rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] )
85 - ssh? ( net-libs/libssh2[${MULTILIB_USEDEP}] )
86 - sys-libs/zlib[${MULTILIB_USEDEP}]"
87 -
88 -# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
89 -# rtmp? (
90 -# media-video/rtmpdump
91 -# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
92 -# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
93 -# )
94 -
95 -# ssl providers to be added:
96 -# fbopenssl $(use_with spnego)
97 -
98 -DEPEND="${RDEPEND}
99 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
100 - test? (
101 - sys-apps/diffutils
102 - dev-lang/perl
103 - )"
104 -
105 -# c-ares must be disabled for threads
106 -# only one ssl provider can be enabled
107 -REQUIRED_USE="
108 - curl_ssl_winssl? ( elibc_Winnt )
109 - threads? ( !adns )
110 - ssl? (
111 - ^^ (
112 - curl_ssl_gnutls
113 - curl_ssl_libressl
114 - curl_ssl_mbedtls
115 - curl_ssl_nss
116 - curl_ssl_openssl
117 - curl_ssl_winssl
118 - )
119 - )"
120 -
121 -DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \
122 - docs/FAQ docs/BUGS docs/CONTRIBUTE.md )
123 -
124 -MULTILIB_WRAPPED_HEADERS=(
125 - /usr/include/curl/curlbuild.h
126 -)
127 -
128 -MULTILIB_CHOST_TOOLS=(
129 - /usr/bin/curl-config
130 -)
131 -
132 -src_prepare() {
133 - eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch
134 - eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch
135 - eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch
136 -
137 - sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
138 - sed -i '/CURL_MAC_CFLAGS/d' configure.ac || die #637252
139 -
140 - eapply_user
141 - eprefixify curl-config.in
142 - eautoreconf
143 -}
144 -
145 -multilib_src_configure() {
146 - # We make use of the fact that later flags override earlier ones
147 - # So start with all ssl providers off until proven otherwise
148 - # TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/)
149 - local myconf=()
150 - myconf+=( --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl )
151 - myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
152 - if use ssl ; then
153 - if use curl_ssl_gnutls; then
154 - einfo "SSL provided by gnutls"
155 - myconf+=( --with-gnutls --with-nettle )
156 - elif use curl_ssl_libressl; then
157 - einfo "SSL provided by LibreSSL"
158 - myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
159 - elif use curl_ssl_mbedtls; then
160 - einfo "SSL provided by mbedtls"
161 - myconf+=( --with-mbedtls )
162 - elif use curl_ssl_nss; then
163 - einfo "SSL provided by nss"
164 - myconf+=( --with-nss )
165 - elif use curl_ssl_openssl; then
166 - einfo "SSL provided by openssl"
167 - myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
168 - elif use curl_ssl_winssl; then
169 - einfo "SSL provided by Windows"
170 - myconf+=( --with-winssl )
171 - else
172 - eerror "We can't be here because of REQUIRED_USE."
173 - fi
174 - else
175 - einfo "SSL disabled"
176 - fi
177 -
178 - # These configuration options are organized alphabetically
179 - # within each category. This should make it easier if we
180 - # ever decide to make any of them contingent on USE flags:
181 - # 1) protocols first. To see them all do
182 - # 'grep SUPPORT_PROTOCOLS configure.ac'
183 - # 2) --enable/disable options second.
184 - # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
185 - # 3) --with/without options third.
186 - # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
187 - ECONF_SOURCE="${S}" \
188 - econf \
189 - --disable-alt-svc \
190 - --enable-crypto-auth \
191 - --enable-dict \
192 - --enable-file \
193 - --enable-ftp \
194 - --enable-gopher \
195 - --enable-http \
196 - --enable-imap \
197 - $(use_enable ldap) \
198 - $(use_enable ldap ldaps) \
199 - --disable-ntlm-wb \
200 - --enable-pop3 \
201 - --enable-rt \
202 - --enable-rtsp \
203 - $(use_enable samba smb) \
204 - $(use_with ssh libssh2) \
205 - --enable-smtp \
206 - --enable-telnet \
207 - --enable-tftp \
208 - --enable-tls-srp \
209 - $(use_enable adns ares) \
210 - --enable-cookies \
211 - --enable-hidden-symbols \
212 - $(use_enable ipv6) \
213 - --enable-largefile \
214 - --without-libpsl \
215 - --enable-manual \
216 - --enable-proxy \
217 - --disable-sspi \
218 - $(use_enable static-libs static) \
219 - $(use_enable threads threaded-resolver) \
220 - $(use_enable threads pthreads) \
221 - --disable-versioned-symbols \
222 - --without-amissl \
223 - --without-cyassl \
224 - --without-darwinssl \
225 - --without-fish-functions-dir \
226 - $(use_with idn libidn2) \
227 - $(use_with kerberos gssapi "${EPREFIX}"/usr) \
228 - $(use_with metalink libmetalink) \
229 - $(use_with http2 nghttp2) \
230 - $(use_with rtmp librtmp) \
231 - $(use_with brotli) \
232 - --without-schannel \
233 - --without-secure-transport \
234 - --without-spnego \
235 - --without-winidn \
236 - --without-wolfssl \
237 - --with-zlib \
238 - "${myconf[@]}"
239 -
240 - if ! multilib_is_native_abi; then
241 - # avoid building the client
242 - sed -i -e '/SUBDIRS/s:src::' Makefile || die
243 - sed -i -e '/SUBDIRS/s:scripts::' Makefile || die
244 - fi
245 -
246 - # Fix up the pkg-config file to be more robust.
247 - # https://github.com/curl/curl/issues/864
248 - local priv=() libs=()
249 - # We always enable zlib.
250 - libs+=( "-lz" )
251 - priv+=( "zlib" )
252 - if use http2; then
253 - libs+=( "-lnghttp2" )
254 - priv+=( "libnghttp2" )
255 - fi
256 - if use ssl && use curl_ssl_openssl; then
257 - libs+=( "-lssl" "-lcrypto" )
258 - priv+=( "openssl" )
259 - fi
260 - grep -q Requires.private libcurl.pc && die "need to update ebuild"
261 - libs=$(printf '|%s' "${libs[@]}")
262 - sed -i -r \
263 - -e "/^Libs.private/s:(${libs#|})( |$)::g" \
264 - libcurl.pc || die
265 - echo "Requires.private: ${priv[*]}" >> libcurl.pc
266 -}
267 -
268 -multilib_src_install_all() {
269 - einstalldocs
270 - find "${ED}" -type f -name '*.la' -delete
271 - rm -rf "${ED}"/etc/
272 -}
273
274 diff --git a/net-misc/curl/curl-7.65.3.ebuild b/net-misc/curl/curl-7.65.3.ebuild
275 deleted file mode 100644
276 index b93ba55b05c..00000000000
277 --- a/net-misc/curl/curl-7.65.3.ebuild
278 +++ /dev/null
279 @@ -1,246 +0,0 @@
280 -# Copyright 1999-2019 Gentoo Authors
281 -# Distributed under the terms of the GNU General Public License v2
282 -
283 -EAPI="7"
284 -
285 -inherit autotools eutils prefix multilib-minimal
286 -
287 -DESCRIPTION="A Client that groks URLs"
288 -HOMEPAGE="https://curl.haxx.se/"
289 -SRC_URI="https://curl.haxx.se/download/${P}.tar.xz"
290 -
291 -LICENSE="MIT"
292 -SLOT="0"
293 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
294 -IUSE="adns brotli http2 idn ipv6 kerberos ldap metalink +progress-meter rtmp samba ssh ssl static-libs test threads"
295 -IUSE+=" curl_ssl_gnutls curl_ssl_libressl curl_ssl_mbedtls curl_ssl_nss +curl_ssl_openssl curl_ssl_winssl"
296 -IUSE+=" elibc_Winnt"
297 -
298 -#lead to lots of false negatives, bug #285669
299 -RESTRICT="test"
300 -
301 -RDEPEND="ldap? ( net-nds/openldap[${MULTILIB_USEDEP}] )
302 - brotli? ( app-arch/brotli:=[${MULTILIB_USEDEP}] )
303 - ssl? (
304 - curl_ssl_gnutls? (
305 - net-libs/gnutls:0=[static-libs?,${MULTILIB_USEDEP}]
306 - dev-libs/nettle:0=[${MULTILIB_USEDEP}]
307 - app-misc/ca-certificates
308 - )
309 - curl_ssl_libressl? (
310 - dev-libs/libressl:0=[static-libs?,${MULTILIB_USEDEP}]
311 - )
312 - curl_ssl_mbedtls? (
313 - net-libs/mbedtls:0=[${MULTILIB_USEDEP}]
314 - app-misc/ca-certificates
315 - )
316 - curl_ssl_openssl? (
317 - dev-libs/openssl:0=[static-libs?,${MULTILIB_USEDEP}]
318 - )
319 - curl_ssl_nss? (
320 - dev-libs/nss:0[${MULTILIB_USEDEP}]
321 - app-misc/ca-certificates
322 - )
323 - )
324 - http2? ( net-libs/nghttp2[${MULTILIB_USEDEP}] )
325 - idn? ( net-dns/libidn2:0=[static-libs?,${MULTILIB_USEDEP}] )
326 - adns? ( net-dns/c-ares:0[${MULTILIB_USEDEP}] )
327 - kerberos? ( >=virtual/krb5-0-r1[${MULTILIB_USEDEP}] )
328 - metalink? ( >=media-libs/libmetalink-0.1.1[${MULTILIB_USEDEP}] )
329 - rtmp? ( media-video/rtmpdump[${MULTILIB_USEDEP}] )
330 - ssh? ( net-libs/libssh2[${MULTILIB_USEDEP}] )
331 - sys-libs/zlib[${MULTILIB_USEDEP}]"
332 -
333 -# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303
334 -# rtmp? (
335 -# media-video/rtmpdump
336 -# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] )
337 -# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] )
338 -# )
339 -
340 -# ssl providers to be added:
341 -# fbopenssl $(use_with spnego)
342 -
343 -DEPEND="${RDEPEND}
344 - >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
345 - test? (
346 - sys-apps/diffutils
347 - dev-lang/perl
348 - )"
349 -
350 -# c-ares must be disabled for threads
351 -# only one ssl provider can be enabled
352 -REQUIRED_USE="
353 - curl_ssl_winssl? ( elibc_Winnt )
354 - threads? ( !adns )
355 - ssl? (
356 - ^^ (
357 - curl_ssl_gnutls
358 - curl_ssl_libressl
359 - curl_ssl_mbedtls
360 - curl_ssl_nss
361 - curl_ssl_openssl
362 - curl_ssl_winssl
363 - )
364 - )"
365 -
366 -DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \
367 - docs/FAQ docs/BUGS docs/CONTRIBUTE.md )
368 -
369 -MULTILIB_WRAPPED_HEADERS=(
370 - /usr/include/curl/curlbuild.h
371 -)
372 -
373 -MULTILIB_CHOST_TOOLS=(
374 - /usr/bin/curl-config
375 -)
376 -
377 -src_prepare() {
378 - eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch
379 - eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch
380 - eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch
381 -
382 - sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241
383 - sed -i '/CURL_MAC_CFLAGS/d' configure.ac || die #637252
384 -
385 - eapply_user
386 - eprefixify curl-config.in
387 - eautoreconf
388 -}
389 -
390 -multilib_src_configure() {
391 - # We make use of the fact that later flags override earlier ones
392 - # So start with all ssl providers off until proven otherwise
393 - # TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/)
394 - local myconf=()
395 - myconf+=( --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl )
396 - myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
397 - if use ssl ; then
398 - if use curl_ssl_gnutls; then
399 - einfo "SSL provided by gnutls"
400 - myconf+=( --with-gnutls --with-nettle )
401 - elif use curl_ssl_libressl; then
402 - einfo "SSL provided by LibreSSL"
403 - myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
404 - elif use curl_ssl_mbedtls; then
405 - einfo "SSL provided by mbedtls"
406 - myconf+=( --with-mbedtls )
407 - elif use curl_ssl_nss; then
408 - einfo "SSL provided by nss"
409 - myconf+=( --with-nss )
410 - elif use curl_ssl_openssl; then
411 - einfo "SSL provided by openssl"
412 - myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs )
413 - elif use curl_ssl_winssl; then
414 - einfo "SSL provided by Windows"
415 - myconf+=( --with-winssl )
416 - else
417 - eerror "We can't be here because of REQUIRED_USE."
418 - fi
419 - else
420 - einfo "SSL disabled"
421 - fi
422 -
423 - # These configuration options are organized alphabetically
424 - # within each category. This should make it easier if we
425 - # ever decide to make any of them contingent on USE flags:
426 - # 1) protocols first. To see them all do
427 - # 'grep SUPPORT_PROTOCOLS configure.ac'
428 - # 2) --enable/disable options second.
429 - # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort
430 - # 3) --with/without options third.
431 - # grep -- --with configure | grep Check | awk '{ print $4 }' | sort
432 -
433 - ECONF_SOURCE="${S}" \
434 - econf \
435 - --disable-alt-svc \
436 - --enable-crypto-auth \
437 - --enable-dict \
438 - --enable-file \
439 - --enable-ftp \
440 - --enable-gopher \
441 - --enable-http \
442 - --enable-imap \
443 - $(use_enable ldap) \
444 - $(use_enable ldap ldaps) \
445 - --disable-ntlm-wb \
446 - --enable-pop3 \
447 - --enable-rt \
448 - --enable-rtsp \
449 - $(use_enable samba smb) \
450 - $(use_with ssh libssh2) \
451 - --enable-smtp \
452 - --enable-telnet \
453 - --enable-tftp \
454 - --enable-tls-srp \
455 - $(use_enable adns ares) \
456 - --enable-cookies \
457 - --enable-dateparse \
458 - --enable-dnsshuffle \
459 - --enable-doh \
460 - --enable-hidden-symbols \
461 - --enable-http-auth \
462 - $(use_enable ipv6) \
463 - --enable-largefile \
464 - --without-libpsl \
465 - --enable-manual \
466 - --enable-mime \
467 - --enable-netrc \
468 - $(use_enable progress-meter) \
469 - --enable-proxy \
470 - --disable-sspi \
471 - $(use_enable static-libs static) \
472 - $(use_enable threads threaded-resolver) \
473 - $(use_enable threads pthreads) \
474 - --disable-versioned-symbols \
475 - --without-amissl \
476 - --without-cyassl \
477 - --without-darwinssl \
478 - --without-fish-functions-dir \
479 - $(use_with idn libidn2) \
480 - $(use_with kerberos gssapi "${EPREFIX}"/usr) \
481 - $(use_with metalink libmetalink) \
482 - $(use_with http2 nghttp2) \
483 - $(use_with rtmp librtmp) \
484 - $(use_with brotli) \
485 - --without-schannel \
486 - --without-secure-transport \
487 - --without-spnego \
488 - --without-winidn \
489 - --without-wolfssl \
490 - --with-zlib \
491 - "${myconf[@]}"
492 -
493 - if ! multilib_is_native_abi; then
494 - # avoid building the client
495 - sed -i -e '/SUBDIRS/s:src::' Makefile || die
496 - sed -i -e '/SUBDIRS/s:scripts::' Makefile || die
497 - fi
498 -
499 - # Fix up the pkg-config file to be more robust.
500 - # https://github.com/curl/curl/issues/864
501 - local priv=() libs=()
502 - # We always enable zlib.
503 - libs+=( "-lz" )
504 - priv+=( "zlib" )
505 - if use http2; then
506 - libs+=( "-lnghttp2" )
507 - priv+=( "libnghttp2" )
508 - fi
509 - if use ssl && use curl_ssl_openssl; then
510 - libs+=( "-lssl" "-lcrypto" )
511 - priv+=( "openssl" )
512 - fi
513 - grep -q Requires.private libcurl.pc && die "need to update ebuild"
514 - libs=$(printf '|%s' "${libs[@]}")
515 - sed -i -r \
516 - -e "/^Libs.private/s:(${libs#|})( |$)::g" \
517 - libcurl.pc || die
518 - echo "Requires.private: ${priv[*]}" >> libcurl.pc
519 -}
520 -
521 -multilib_src_install_all() {
522 - einstalldocs
523 - find "${ED}" -type f -name '*.la' -delete
524 - rm -rf "${ED}"/etc/
525 -}