summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2023-08-01 16:03:22 -0400
committerCraig Andrews <candrews@gentoo.org>2023-08-01 16:10:41 -0400
commit231b6a4c081ed307b7efacd8d270d29b3ce29288 (patch)
tree89963a72f081bc94b8d7d9b0cebc21565f865696 /net-libs/ngtcp2
parentdev-perl/Test-Without-Module: Stabilize 0.210.0 hppa, #910822 (diff)
downloadgentoo-231b6a4c081ed307b7efacd8d270d29b3ce29288.tar.gz
gentoo-231b6a4c081ed307b7efacd8d270d29b3ce29288.tar.bz2
gentoo-231b6a4c081ed307b7efacd8d270d29b3ce29288.zip
net-libs/ngtcp2: add 0.18.0
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-libs/ngtcp2')
-rw-r--r--net-libs/ngtcp2/Manifest1
-rw-r--r--net-libs/ngtcp2/ngtcp2-0.18.0.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index 54c2d3afe9ff..29ec613a552a 100644
--- a/net-libs/ngtcp2/Manifest
+++ b/net-libs/ngtcp2/Manifest
@@ -2,3 +2,4 @@ DIST ngtcp2-0.14.1.tar.xz 585788 BLAKE2B 68574767c701432e7558fa85cbad0d49934d220
DIST ngtcp2-0.15.0.tar.xz 589584 BLAKE2B af0d2e2263e9f23d07ad1c8637465ce78324f6f82614d14da55c50f64c35cbe972912de20a593c6f7483cf5db1ef4046618bb49639f0288a2fff8d82da06b4a6 SHA512 f57b0e8c88d2710fdee422c387b555d188197e54e97d99fae8b0beaa8eca2c6797e6a55efca34fb99ac65a86be1a224adfd17a0bcf314a27b5fcc24bb304f4bb
DIST ngtcp2-0.16.0.tar.xz 591488 BLAKE2B 9f72246f37c666edade7a8c323a542904801386f8e7e193996a5c8d673c0d538d748a6cd6931088920625c8574a1fcffd007bb40f4e71be030d63839ee475964 SHA512 b4739b6357c9055a8de8d386dd4b2e943f8a86ce6325cdde966eb97c54aca305544233c53ecb2f83db948bb374b41a962c3944167d5054cc5edd222f41bb97d4
DIST ngtcp2-0.17.0.tar.xz 590752 BLAKE2B 584dc4137ff572f1e433420d8dfb4a91eb8c50557af3609b851d02ae6de044bb2c9715a59f57c8183abfb759e565c7ce0448b4f327109815b125919cd8b6cfb5 SHA512 b8a8fbef18112fd536bb7c7132df8f076b805e41a6319c842a4692c60f75ba1cc00b3c812c4ee41419f459bff1d19dc1a1d0a514293eca8defcc6c3b6fa64a51
+DIST ngtcp2-0.18.0.tar.xz 588876 BLAKE2B 24fecf24482de95b120a4a4cbb6627f09b528ab75e47964d17392f67b46144d8b5edaff1d6a4ac587ad62b6445db1b7186cdf27fe24e3fa71baa613ff95807c3 SHA512 f147f45ad0be4b45a3c3fcf2c61fc3a23e721702f19ad857e6bad93bbad5a4920f0fdcf59d3a0dd1226f5e3940e3cd3614fea21edd343e05381fb50acfe1eead
diff --git a/net-libs/ngtcp2/ngtcp2-0.18.0.ebuild b/net-libs/ngtcp2/ngtcp2-0.18.0.ebuild
new file mode 100644
index 000000000000..c50194288f25
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-0.18.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2023 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 ~arm64 ~hppa ~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 ) )"
+
+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
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ cmake_build check
+}