mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-11 15:06:58 +02:00
net-misc/curl: Sync with Gentoo
It's from Gentoo commit fae2444de6133f0955ea1ee0070b7f127da8a0c4.
This commit is contained in:
parent
39416fcde4
commit
ae5199901c
@ -4,7 +4,7 @@
|
|||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/danielstenberg.asc
|
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/danielstenberg.asc
|
||||||
inherit autotools multilib-minimal multiprocessing prefix verify-sig
|
inherit autotools multilib-minimal multiprocessing prefix toolchain-funcs verify-sig
|
||||||
|
|
||||||
DESCRIPTION="A Client that groks URLs"
|
DESCRIPTION="A Client that groks URLs"
|
||||||
HOMEPAGE="https://curl.se/"
|
HOMEPAGE="https://curl.se/"
|
||||||
@ -137,7 +137,7 @@ multilib_src_configure() {
|
|||||||
local myconf=()
|
local myconf=()
|
||||||
|
|
||||||
myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
|
myconf+=( --without-ca-fallback --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt )
|
||||||
if use ssl ; then
|
if use ssl; then
|
||||||
myconf+=( --without-gnutls --without-mbedtls --without-nss --without-rustls )
|
myconf+=( --without-gnutls --without-mbedtls --without-nss --without-rustls )
|
||||||
|
|
||||||
if use gnutls; then
|
if use gnutls; then
|
||||||
@ -177,6 +177,7 @@ multilib_src_configure() {
|
|||||||
myconf+=( --with-default-ssl-backend=rustls )
|
myconf+=( --with-default-ssl-backend=rustls )
|
||||||
else
|
else
|
||||||
eerror "We can't be here because of REQUIRED_USE."
|
eerror "We can't be here because of REQUIRED_USE."
|
||||||
|
die "Please file a bug, hit impossible condition w/ USE=ssl handling."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -241,7 +242,7 @@ multilib_src_configure() {
|
|||||||
--without-amissl
|
--without-amissl
|
||||||
--without-bearssl
|
--without-bearssl
|
||||||
$(use_with brotli)
|
$(use_with brotli)
|
||||||
--without-fish-functions-dir
|
--with-fish-functions-dir="${EPREFIX}"/usr/share/fish/vendor_completions.d
|
||||||
$(use_with http2 nghttp2)
|
$(use_with http2 nghttp2)
|
||||||
--without-hyper
|
--without-hyper
|
||||||
$(use_with idn libidn2)
|
$(use_with idn libidn2)
|
||||||
@ -263,6 +264,7 @@ multilib_src_configure() {
|
|||||||
--without-wolfssl
|
--without-wolfssl
|
||||||
--with-zlib
|
--with-zlib
|
||||||
$(use_with zstd)
|
$(use_with zstd)
|
||||||
|
--with-zsh-functions-dir="${EPREFIX}"/usr/share/zsh/site-functions
|
||||||
)
|
)
|
||||||
|
|
||||||
if use test && multilib_is_native_abi && ( use http2 || use nghttp3 ); then
|
if use test && multilib_is_native_abi && ( use http2 || use nghttp3 ); then
|
||||||
@ -305,6 +307,15 @@ multilib_src_configure() {
|
|||||||
echo "Requires.private: ${priv[*]}" >> libcurl.pc || die
|
echo "Requires.private: ${priv[*]}" >> libcurl.pc || die
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if multilib_is_native_abi; then
|
||||||
|
# Shell completions
|
||||||
|
! tc-is-cross-compiler && emake -C scripts
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# There is also a pytest harness that tests for bugs in some very specific
|
# There is also a pytest harness that tests for bugs in some very specific
|
||||||
# situations; we can rely on upstream for this rather than adding additional test deps.
|
# situations; we can rely on upstream for this rather than adding additional test deps.
|
||||||
multilib_src_test() {
|
multilib_src_test() {
|
||||||
@ -324,6 +335,15 @@ multilib_src_test() {
|
|||||||
multilib_is_native_abi && emake test TFLAGS="-n -v -a -k -am -p -j$((7*$(makeopts_jobs))) !241 !1083"
|
multilib_is_native_abi && emake test TFLAGS="-n -v -a -k -am -p -j$((7*$(makeopts_jobs))) !241 !1083"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
if multilib_is_native_abi; then
|
||||||
|
# Shell completions
|
||||||
|
! tc-is-cross-compiler && emake -C scripts DESTDIR="${D}" install
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
multilib_src_install_all() {
|
multilib_src_install_all() {
|
||||||
einstalldocs
|
einstalldocs
|
||||||
find "${ED}" -type f -name '*.la' -delete || die
|
find "${ED}" -type f -name '*.la' -delete || die
|
||||||
|
Loading…
Reference in New Issue
Block a user