summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-libs/ngtcp2/Manifest1
-rw-r--r--net-libs/ngtcp2/ngtcp2-1.12.0.ebuild60
2 files changed, 61 insertions, 0 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index eed4ba323fd7..8411026ba8f1 100644
--- a/net-libs/ngtcp2/Manifest
+++ b/net-libs/ngtcp2/Manifest
@@ -1 +1,2 @@
DIST ngtcp2-1.11.0.tar.xz 652904 BLAKE2B 138a0e10cdca8ca3a38718ddd0155cea7ed8493483186d1242e7b949477774fe8d67b00f07688e1c098984598125c3e137fa697198efe0f64d3c562961a84b94 SHA512 8c4c8faa24d34e8d6c66df99ba7f3a4dbae689b38bf2bfa68e147af11abc050dc1de790ffc5de1f7379405c91d736f67e58d5661c2d2b72126ba079fadee72d3
+DIST ngtcp2-1.12.0.tar.xz 656116 BLAKE2B 8559b5ca68bfcb0a290e3dc81311f8d3a8e15d49ce8ea423262b5c40d3ecd3e496f1b37bfc98da3cacbf76cd863c57fe050663fa8356a9d09923762d1c896938 SHA512 9d387df7d80665a346b170cf2adc0cc1163ae8d1d921355c1c07ec4e788feb76b9fd681dd606b139b3a2c27f3f0cf3e0a61014b9a3623c4bc06e86d32da0a90b
diff --git a/net-libs/ngtcp2/ngtcp2-1.12.0.ebuild b/net-libs/ngtcp2/ngtcp2-1.12.0.ebuild
new file mode 100644
index 000000000000..1120f2fc5e63
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-1.12.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 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
+ SRC_URI="https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz"
+
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
+fi
+
+DESCRIPTION="Implementation of the IETF QUIC Protocol"
+HOMEPAGE="https://github.com/ngtcp2/ngtcp2"
+
+LICENSE="MIT"
+SLOT="0/0"
+IUSE="+gnutls openssl +ssl"
+REQUIRED_USE="ssl? ( || ( gnutls openssl ) )"
+
+RDEPEND="
+ ssl? (
+ gnutls? ( >=net-libs/gnutls-3.7.2:=[${MULTILIB_USEDEP}] )
+ openssl? ( >=dev-libs/openssl-1.1.1:=[${MULTILIB_USEDEP}] )
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+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
+}