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