summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2024-06-13 09:55:04 -0400
committerCraig Andrews <candrews@gentoo.org>2024-06-13 10:00:57 -0400
commitd4169407deffca3c6ff203eef08e82fd21d0b392 (patch)
treefa762b40e1b0d9eea291f0b21dc287f24516b0a3 /net-libs
parentsys-libs/glibc: keyword 2.39-r9 (diff)
downloadgentoo-d4169407deffca3c6ff203eef08e82fd21d0b392.tar.gz
gentoo-d4169407deffca3c6ff203eef08e82fd21d0b392.tar.bz2
gentoo-d4169407deffca3c6ff203eef08e82fd21d0b392.zip
net-libs/ngtcp2: add 1.6.0
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/ngtcp2/Manifest1
-rw-r--r--net-libs/ngtcp2/ngtcp2-1.6.0.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index 791d735d120a..cc142af58628 100644
--- a/net-libs/ngtcp2/Manifest
+++ b/net-libs/ngtcp2/Manifest
@@ -4,3 +4,4 @@ DIST ngtcp2-1.2.0.tar.xz 598000 BLAKE2B 7594817c3a26a41f8d32145d81be6060f51830d6
DIST ngtcp2-1.3.0.tar.xz 615620 BLAKE2B b8ec40c02979b0f25c1655c3c4a40c5a604d83f049e19793ef920bb21728be212e8e5b3f727c06b2a4fc1641ab8c12f81d24fcf2b623280fd0c1d100f338c650 SHA512 08ef43bb967dc0ca625975cca69e05903490b597531c65234077669cb39b5a28b60ff76726006ce6c4531d6c099d88dde63517f7b7d00e20ec5a879b87a30223
DIST ngtcp2-1.4.0.tar.xz 618480 BLAKE2B a04010fa227a4cbe4ddb2036034a4eb97d80a410d2aa3959e2af48248e9dfe754c05b2d6b4b2d157c850f3d018d71d6dec1830f51e318f62a00b8fb3aa295ea3 SHA512 6491f158cd3bd659d593810935ceedefea8ee4a77e0a1952c0300f83188d0af1ef8313b24f9dbd3e7a795b6ad9099d2681b70ff1bafd92eed429ee028b2f2dea
DIST ngtcp2-1.5.0.tar.xz 627464 BLAKE2B 6a6fc91f2755d9cbccd6118b53b56b0b4fd3b445c9a491a2d7469ad59d7fe1983516eb79242196db009e7b0875c4db5305bd4c285d2437073b605033f812084d SHA512 6c05beccac5d53c575ceaa594ac6b1d91ae9f0be01394b3520e84b51a44d3c6a71612c2c6f613d3d1b9d2992a83a68696fedbfdc3842f02d4009c95b463ad97f
+DIST ngtcp2-1.6.0.tar.xz 623300 BLAKE2B 738b98d05a188c00d0bae45bbdac91daa9076476a81b696acd22b126bc2e5352c4aa486b8f469723a20ff59e8785b99aa7576b83820fd6312c5988b3a35adc95 SHA512 3afa23e05b7810cc4dd8b8b497ed47eff73fe97869d0a560a324d59491975209705a9dd0de4ab5833ed8e1c2507a621318be7dd18673ac9b07204598fecdffe8
diff --git a/net-libs/ngtcp2/ngtcp2-1.6.0.ebuild b/net-libs/ngtcp2/ngtcp2-1.6.0.ebuild
new file mode 100644
index 000000000000..da18d964561e
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-1.6.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/ngtcp2/ngtcp2.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc64 ~riscv ~x86"
+fi
+
+DESCRIPTION="Implementation of the IETF QUIC Protocol"
+HOMEPAGE="https://github.com/ngtcp2/ngtcp2/"
+
+LICENSE="MIT"
+SLOT="0/0"
+IUSE="+gnutls openssl +ssl static-libs test"
+REQUIRED_USE="ssl? ( || ( gnutls openssl ) ) test? ( static-libs )"
+
+BDEPEND="virtual/pkgconfig"
+RDEPEND="
+ ssl? (
+ gnutls? ( >=net-libs/gnutls-3.7.2:0= )
+ openssl? (
+ >=dev-libs/openssl-1.1.1:0=
+ )
+ )"
+DEPEND="${RDEPEND}
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+RESTRICT="!test? ( test )"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DENABLE_STATIC_LIB=$(usex static-libs)
+ -DENABLE_GNUTLS=$(usex gnutls)
+ -DENABLE_OPENSSL=$(usex openssl)
+ -DENABLE_BORINGSSL=OFF
+ -DENABLE_PICOTLS=OFF
+ -DENABLE_WOLFSSL=OFF
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
+ -DBUILD_TESTING=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ cmake_build check
+}