| 1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 8 |
8 |
# https://lists.haxx.se/listinfo/curl-distros
|
| 9 |
9 |
|
| 10 |
10 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/danielstenberg.asc
|
| 11 |
|
inherit autotools multilib-minimal multiprocessing prefix toolchain-funcs verify-sig
|
|
11 |
inherit dot-a autotools multilib-minimal multiprocessing prefix toolchain-funcs verify-sig
|
| 12 |
12 |
|
| 13 |
13 |
DESCRIPTION="A Client that groks URLs"
|
| 14 |
14 |
HOMEPAGE="https://curl.se/"
|
| ... | ... | |
| 73 |
73 |
)
|
| 74 |
74 |
curl_quic_openssl? (
|
| 75 |
75 |
curl_ssl_openssl
|
| 76 |
|
quic
|
| 77 |
76 |
!gnutls
|
| 78 |
77 |
!mbedtls
|
| 79 |
78 |
!rustls
|
| 80 |
79 |
)
|
| 81 |
80 |
curl_quic_ngtcp2? (
|
| 82 |
81 |
curl_ssl_gnutls
|
| 83 |
|
quic
|
| 84 |
82 |
!mbedtls
|
| 85 |
83 |
!openssl
|
| 86 |
84 |
!rustls
|
| ... | ... | |
| 100 |
98 |
# However 'supported' vs 'works' are two entirely different things; be sane but
|
| 101 |
99 |
# don't be afraid to require a later version.
|
| 102 |
100 |
# ngtcp2 = https://bugs.gentoo.org/912029 - can only build with one tls backend at a time.
|
|
101 |
# TODO: OpenSSL-QUIC support is going to be removed in 2026; depend on ngtcp2[{gnutls,openssl}] before that point.
|
|
102 |
# - https://github.com/curl/curl/pull/18820 (Deprecate OpenSSL QUIC support)
|
|
103 |
# - https://github.com/curl/curl/issues/18336 (curl w/ OpenSSL QUIC fails to fetch Google.com)
|
| 103 |
104 |
RDEPEND="
|
| 104 |
105 |
>=virtual/zlib-1.2.5:=[${MULTILIB_USEDEP}]
|
| 105 |
106 |
adns? ( >=net-dns/c-ares-1.16.0:=[${MULTILIB_USEDEP}] )
|
| ... | ... | |
| 125 |
126 |
)
|
| 126 |
127 |
mbedtls? (
|
| 127 |
128 |
app-misc/ca-certificates
|
| 128 |
|
net-libs/mbedtls:0=[${MULTILIB_USEDEP}]
|
|
129 |
net-libs/mbedtls:3=[${MULTILIB_USEDEP}]
|
| 129 |
130 |
)
|
| 130 |
131 |
openssl? (
|
| 131 |
132 |
>=dev-libs/openssl-1.0.2:=[static-libs?,${MULTILIB_USEDEP}]
|
| ... | ... | |
| 150 |
151 |
verify-sig? ( sec-keys/openpgp-keys-danielstenberg )
|
| 151 |
152 |
"
|
| 152 |
153 |
|
| 153 |
|
DOCS=( README docs/{FEATURES.md,INTERNALS.md,FAQ,BUGS.md,CONTRIBUTE.md} )
|
|
154 |
DOCS=( README docs/{FEATURES.md,INTERNALS.md,FAQ.md,BUGS.md,CONTRIBUTE.md} )
|
| 154 |
155 |
|
| 155 |
156 |
MULTILIB_WRAPPED_HEADERS=(
|
| 156 |
157 |
/usr/include/curl/curlbuild.h
|
| ... | ... | |
| 175 |
176 |
)
|
| 176 |
177 |
|
| 177 |
178 |
PATCHES=(
|
| 178 |
|
"${FILESDIR}/${PN}-prefix-4.patch"
|
|
179 |
"${FILESDIR}/${PN}-prefix-6.patch"
|
| 179 |
180 |
"${FILESDIR}/${PN}-respect-cflags-3.patch"
|
| 180 |
181 |
)
|
| 181 |
182 |
|
| ... | ... | |
| 237 |
238 |
}
|
| 238 |
239 |
|
| 239 |
240 |
multilib_src_configure() {
|
|
241 |
use static-libs && lto-guarantee-fat
|
| 240 |
242 |
# We make use of the fact that later flags override earlier ones
|
| 241 |
243 |
# So start with all ssl providers off until proven otherwise
|
| 242 |
244 |
# TODO: in the future, we may want to add wolfssl (https://www.wolfssl.com/)
|
| ... | ... | |
| 338 |
340 |
$(use_with kerberos gssapi "${EPREFIX}"/usr)
|
| 339 |
341 |
$(use_with sasl-scram libgsasl)
|
| 340 |
342 |
$(use_with psl libpsl)
|
| 341 |
|
--without-msh3
|
| 342 |
343 |
--without-quiche
|
| 343 |
344 |
--without-schannel
|
| 344 |
345 |
--without-winidn
|
| ... | ... | |
| 430 |
431 |
multilib_src_install_all() {
|
| 431 |
432 |
einstalldocs
|
| 432 |
433 |
find "${ED}" -type f -name '*.la' -delete || die
|
|
434 |
|
|
435 |
use static-libs && strip-lto-bytecode
|
|
436 |
|
| 433 |
437 |
rm -rf "${ED}"/etc/ || die
|
| 434 |
438 |
}
|
| 435 |
439 |
|