1 |
commit: a761e170eb3d6ae161c13815563eea04695ed0ee |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 10 04:33:16 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 10 04:33:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a761e170 |
7 |
|
8 |
net-misc/curl: version bump to 7.55.0, bug #626776 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
net-misc/curl/Manifest | 1 + |
13 |
net-misc/curl/curl-7.55.0.ebuild | 242 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 243 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/curl/Manifest b/net-misc/curl/Manifest |
17 |
index e8889eaaebd..b8aa81b5828 100644 |
18 |
--- a/net-misc/curl/Manifest |
19 |
+++ b/net-misc/curl/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST curl-7.53.0.tar.bz2 2612491 SHA256 b2345a8bef87b4c229dedf637cb203b5e21db05e |
21 |
DIST curl-7.53.1.tar.bz2 2609559 SHA256 1c7207c06d75e9136a944a2e0528337ce76f15b9ec9ae4bb30d703b59bf530e8 SHA512 c668494d0e795f34b00505ca68ab41fbb475a1bccbcac1d0bbacbbbafa40a994472e100be18a0c10f8fa21b5b9bd3f4e66c1e68ff5423b13b82d829cbaefcd52 WHIRLPOOL bf5f0a795a2612284e84fa7917351b2d41370bda0efc84f2e21456f7110f1f1f6cbf52b0956b0ba586cdcafbbaad5e47bfea82bf37cde39434a18ee5d0dbfdaf |
22 |
DIST curl-7.54.0.tar.bz2 2602286 SHA256 f50ebaf43c507fa7cc32be4b8108fa8bbd0f5022e90794388f3c7694a302ff06 SHA512 2ed8d32a6803ecddcb587495107d9ebce724d34dae5cad1f8be241e93340e913bb8ce9b69259cb84b3d53c2e672e142c3aad471c4a251bd1d42fc06eb9d8f650 WHIRLPOOL 37dc3e01e0466cdfb7ed061bd791b816112ca9af6ed88dfb89e47e814111e5968d980d2a8e6542d1a87882d540d04bac9d4f4ed6f4f7c5861e3f05ee623752e7 |
23 |
DIST curl-7.54.1.tar.bz2 2612443 SHA256 fdfc4df2d001ee0c44ec071186e770046249263c491fcae48df0e1a3ca8f25a0 SHA512 eb9639677f0ca1521ca631c520ab83ad071c52b31690e5e7f31546f6a44b2f11d1bb62282056cffb570eb290bf1e7830e87cb536295ac6a54a904663e795f2da WHIRLPOOL 199b4ec87451303ed06a6864ea398f1c7f5b4f2653935aa203f1b5c0435904e70da7e899d6c60846ea275445b96d563d538dfbfed0c438206f3c5cb742cda069 |
24 |
+DIST curl-7.55.0.tar.bz2 2782908 SHA256 af1d69ec6f15fe70a2cabaa98309732bf035ef2a735e4e1a3e08754d2780e5b1 SHA512 4975864621219e937585aaf5a9a54bba112b58bbf5a8acd92e1e972ea747a15a5564143548c5d8930b8c0d0e9d27d28225d0c81e52a1ba71e4c6f9e3859c978b WHIRLPOOL a40968bb46f5325fa92c190c4e983bb5b5383e0bb2103d57c2750f9825719b77bd1d40e25095aa571b21ad4333888d4146130712f7ed260cbb269a5d1023a5d4 |
25 |
|
26 |
diff --git a/net-misc/curl/curl-7.55.0.ebuild b/net-misc/curl/curl-7.55.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..5227717914f |
29 |
--- /dev/null |
30 |
+++ b/net-misc/curl/curl-7.55.0.ebuild |
31 |
@@ -0,0 +1,242 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
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 ~x64-cygwin ~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_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 |
+ ) |
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[static-libs?,${MULTILIB_USEDEP}] ) |
86 |
+ sys-libs/zlib[${MULTILIB_USEDEP}] |
87 |
+ abi_x86_32? ( |
88 |
+ !<=app-emulation/emul-linux-x86-baselibs-20140508-r13 |
89 |
+ !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
90 |
+ )" |
91 |
+ |
92 |
+# Do we need to enforce the same ssl backend for curl and rtmpdump? Bug #423303 |
93 |
+# rtmp? ( |
94 |
+# media-video/rtmpdump |
95 |
+# curl_ssl_gnutls? ( media-video/rtmpdump[gnutls] ) |
96 |
+# curl_ssl_openssl? ( media-video/rtmpdump[-gnutls,ssl] ) |
97 |
+# ) |
98 |
+ |
99 |
+# ssl providers to be added: |
100 |
+# fbopenssl $(use_with spnego) |
101 |
+ |
102 |
+DEPEND="${RDEPEND} |
103 |
+ >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}] |
104 |
+ test? ( |
105 |
+ sys-apps/diffutils |
106 |
+ dev-lang/perl |
107 |
+ )" |
108 |
+ |
109 |
+# c-ares must be disabled for threads |
110 |
+# only one ssl provider can be enabled |
111 |
+REQUIRED_USE=" |
112 |
+ curl_ssl_winssl? ( elibc_Winnt ) |
113 |
+ threads? ( !adns ) |
114 |
+ ssl? ( |
115 |
+ ^^ ( |
116 |
+ curl_ssl_axtls |
117 |
+ curl_ssl_gnutls |
118 |
+ curl_ssl_libressl |
119 |
+ curl_ssl_mbedtls |
120 |
+ curl_ssl_nss |
121 |
+ curl_ssl_openssl |
122 |
+ curl_ssl_winssl |
123 |
+ ) |
124 |
+ )" |
125 |
+ |
126 |
+DOCS=( CHANGES README docs/FEATURES docs/INTERNALS.md \ |
127 |
+ docs/MANUAL docs/FAQ docs/BUGS docs/CONTRIBUTE.md ) |
128 |
+ |
129 |
+MULTILIB_WRAPPED_HEADERS=( |
130 |
+ /usr/include/curl/curlbuild.h |
131 |
+) |
132 |
+ |
133 |
+MULTILIB_CHOST_TOOLS=( |
134 |
+ /usr/bin/curl-config |
135 |
+) |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ eapply "${FILESDIR}"/${PN}-7.30.0-prefix.patch |
139 |
+ eapply "${FILESDIR}"/${PN}-respect-cflags-3.patch |
140 |
+ eapply "${FILESDIR}"/${PN}-fix-gnutls-nettle.patch |
141 |
+ |
142 |
+ sed -i '/LD_LIBRARY_PATH=/d' configure.ac || die #382241 |
143 |
+ |
144 |
+ eapply_user |
145 |
+ eprefixify curl-config.in |
146 |
+ eautoreconf |
147 |
+} |
148 |
+ |
149 |
+multilib_src_configure() { |
150 |
+ # We make use of the fact that later flags override earlier ones |
151 |
+ # So start with all ssl providers off until proven otherwise |
152 |
+ local myconf=() |
153 |
+ myconf+=( --without-axtls --without-gnutls --without-mbedtls --without-nss --without-polarssl --without-ssl --without-winssl ) |
154 |
+ myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ) |
155 |
+ if use ssl ; then |
156 |
+ if use curl_ssl_axtls; then |
157 |
+ einfo "SSL provided by axtls" |
158 |
+ myconf+=( --with-axtls ) |
159 |
+ elif use curl_ssl_gnutls; then |
160 |
+ einfo "SSL provided by gnutls" |
161 |
+ myconf+=( --with-gnutls --with-nettle ) |
162 |
+ elif use curl_ssl_libressl; then |
163 |
+ einfo "SSL provided by LibreSSL" |
164 |
+ myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
165 |
+ elif use curl_ssl_mbedtls; then |
166 |
+ einfo "SSL provided by mbedtls" |
167 |
+ myconf+=( --with-mbedtls ) |
168 |
+ elif use curl_ssl_nss; then |
169 |
+ einfo "SSL provided by nss" |
170 |
+ myconf+=( --with-nss ) |
171 |
+ elif use curl_ssl_openssl; then |
172 |
+ einfo "SSL provided by openssl" |
173 |
+ myconf+=( --with-ssl --with-ca-path="${EPREFIX}"/etc/ssl/certs ) |
174 |
+ elif use curl_ssl_winssl; then |
175 |
+ einfo "SSL provided by Windows" |
176 |
+ myconf+=( --with-winssl ) |
177 |
+ else |
178 |
+ eerror "We can't be here because of REQUIRED_USE." |
179 |
+ fi |
180 |
+ else |
181 |
+ einfo "SSL disabled" |
182 |
+ fi |
183 |
+ |
184 |
+ # These configuration options are organized alphabetically |
185 |
+ # within each category. This should make it easier if we |
186 |
+ # ever decide to make any of them contingent on USE flags: |
187 |
+ # 1) protocols first. To see them all do |
188 |
+ # 'grep SUPPORT_PROTOCOLS configure.ac' |
189 |
+ # 2) --enable/disable options second. |
190 |
+ # 'grep -- --enable configure | grep Check | awk '{ print $4 }' | sort |
191 |
+ # 3) --with/without options third. |
192 |
+ # grep -- --with configure | grep Check | awk '{ print $4 }' | sort |
193 |
+ ECONF_SOURCE="${S}" \ |
194 |
+ econf \ |
195 |
+ --enable-crypto-auth \ |
196 |
+ --enable-dict \ |
197 |
+ --enable-file \ |
198 |
+ --enable-ftp \ |
199 |
+ --enable-gopher \ |
200 |
+ --enable-http \ |
201 |
+ --enable-imap \ |
202 |
+ $(use_enable ldap) \ |
203 |
+ $(use_enable ldap ldaps) \ |
204 |
+ --disable-ntlm-wb \ |
205 |
+ --enable-pop3 \ |
206 |
+ --enable-rt \ |
207 |
+ --enable-rtsp \ |
208 |
+ $(use_enable samba smb) \ |
209 |
+ $(use_with ssh libssh2) \ |
210 |
+ --enable-smtp \ |
211 |
+ --enable-telnet \ |
212 |
+ --enable-tftp \ |
213 |
+ --enable-tls-srp \ |
214 |
+ $(use_enable adns ares) \ |
215 |
+ --enable-cookies \ |
216 |
+ --enable-hidden-symbols \ |
217 |
+ $(use_enable ipv6) \ |
218 |
+ --enable-largefile \ |
219 |
+ --without-libpsl \ |
220 |
+ --enable-manual \ |
221 |
+ --enable-proxy \ |
222 |
+ --disable-soname-bump \ |
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-cyassl \ |
229 |
+ --without-darwinssl \ |
230 |
+ $(use_with idn libidn2) \ |
231 |
+ $(use_with kerberos gssapi "${EPREFIX}"/usr) \ |
232 |
+ $(use_with metalink libmetalink) \ |
233 |
+ $(use_with http2 nghttp2) \ |
234 |
+ $(use_with rtmp librtmp) \ |
235 |
+ --without-spnego \ |
236 |
+ --without-winidn \ |
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 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 |
+ prune_libtool_files --all |
271 |
+ |
272 |
+ rm -rf "${ED}"/etc/ |
273 |
+} |