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