net-libs/ngtcp2: add 1.22.0

Signed-off-by: Craig Andrews <candrews@gentoo.org>
This commit is contained in:
Craig Andrews
2026-03-31 10:01:02 -04:00
parent eae905474f
commit 6e077fe40d
2 changed files with 76 additions and 0 deletions

View File

@@ -3,3 +3,5 @@ DIST ngtcp2-1.20.0.tar.xz 684060 BLAKE2B 1666c711688674eca1aba86dfca68f421557bf0
DIST ngtcp2-1.20.0.tar.xz.asc 833 BLAKE2B 62adeb882ce0023934534f5bad8f13395d66e0a54505ea654e6930c45eeba1fe5e21b964e1d8d2893732a6b8e742d1781c38034ebc69f4c87da5261ec1c7491e SHA512 1a57a1f9969f62a852390193de76685984e87ef5deec53a5a2937198deb01f7b2980989406f23ad58441baec9f881094028bd65c6cf309a73575a41d2ad1b01a
DIST ngtcp2-1.21.0.tar.xz 687504 BLAKE2B 1ce024c811b0e084478607a48d5ebc1e5840b9067178d5328fe9c32336243af3860923905a35043b9e431b518df6c7ff687e66955fe96bb344b7a980c8b42d31 SHA512 8f1fab5f71364da2b42a3a2726089520b7b2bf751bd7ba3b8de153091cb36c6e983ab71cf2bb8cd62b29b665331dc08c5e40d106066f79474059a77e4f7f9361
DIST ngtcp2-1.21.0.tar.xz.asc 833 BLAKE2B 097b3328acd32c8a3fd77b9494b56d41fd93d511e2d709a607f5865b4408e8c6c5ba6c0ce99904b378845f7dad856ebefeea334e0b325ea416a3295a21b97a03 SHA512 267ab883b912ae9cb294d441d2937446db1bb46e0ca7df1fe78a4108caf94f403af75ec01448a9ad01e9b5f6045db2929d22eeb8feebcf35c0ed1e83100eef63
DIST ngtcp2-1.22.0.tar.xz 697608 BLAKE2B efbbf259770ee7a8b8a486e05278354ce3aed60310d87a63a56bbb879cce14d474f1eb2eb94797bad0bd1df07e5b3302e564038641974a68b767ab655a774dd4 SHA512 2c07716c8b06775f6c5e7442c10e4202921f5c6000cfad10c2fdbf4b752bb1898ee474344461fc5d1603d36bdee838aa717287a1f661627d8524689e58b21509
DIST ngtcp2-1.22.0.tar.xz.asc 833 BLAKE2B 5ede902e49cae93015d46c3fc9fe66baac50200e94336c2af4d0d1cba5fabfeaee163104b4810335dc2c9b1662d9dcf585b69ce82ee8fe5ea55b8d0826b86d61 SHA512 d73cc96124c8e06d1e1fea9115f192da9e1d15f4854094690d172dcd4706603ca57fdf6eb921acc9f8eb29da49f24d7526121b87c13e18d90bdc9ea627a754dd

View File

@@ -0,0 +1,74 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Built with autotools rather than cmake to avoid circular dep (bug #951524
inherit multilib-minimal
if [[ ${PV} == 9999 ]] ; then
EGIT_REPO_URI="https://github.com/ngtcp2/ngtcp2.git"
inherit autotools git-r3
else
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/ngtcp2.asc
inherit verify-sig
SRC_URI="
https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz
verify-sig? ( https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz.asc )
"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos"
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-ngtcp2 )"
fi
DESCRIPTION="Implementation of the IETF QUIC Protocol"
HOMEPAGE="https://nghttp2.org/ngtcp2/ https://github.com/ngtcp2/ngtcp2"
LICENSE="MIT"
SLOT="0/0"
IUSE="gnutls +openssl +ssl"
REQUIRED_USE="ssl? ( || ( gnutls openssl ) )"
# Uses SSL_set_quic_tls_cbs to detect OpenSSL. The function was introduced in
# OpenSSL 3.5:
# https://docs.openssl.org/master/man3/SSL_set_quic_tls_cbs/#history.
RDEPEND="
ssl? (
gnutls? ( >=net-libs/gnutls-3.7.2:=[${MULTILIB_USEDEP}] )
openssl? ( >=dev-libs/openssl-3.5:=[${MULTILIB_USEDEP}] )
)
"
DEPEND="${RDEPEND}"
BDEPEND+=" virtual/pkgconfig"
# QuicTLS function, the OpenSSL support is checked via SSL_set_quic_tls_cbs.
QA_CONFIG_IMPL_DECL_SKIP=(
'SSL_provide_quic_data'
)
src_prepare() {
default
[[ ${PV} == 9999 ]] && eautoreconf
}
multilib_src_configure() {
local myeconfargs=(
--disable-werror
--enable-lib-only
$(use_with openssl)
$(use_with gnutls)
--without-boringssl
--without-picotls
--without-wolfssl
--without-libev
--without-libnghttp3
--without-jemalloc
)
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_install_all() {
einstalldocs
find "${ED}"/usr -type f -name '*.la' -delete || die
}