summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2024-03-18 09:52:50 -0400
committerCraig Andrews <candrews@gentoo.org>2024-03-18 09:52:58 -0400
commit236b6f1d730dcc9141ed4201ab2c33dacfe0f9d5 (patch)
tree5434a927f30ab091b69ecbdf5873c30aa83ac769 /net-libs/ngtcp2
parentdev-tex/hevea: add 2.36 (diff)
downloadgentoo-236b6f1d730dcc9141ed4201ab2c33dacfe0f9d5.tar.gz
gentoo-236b6f1d730dcc9141ed4201ab2c33dacfe0f9d5.tar.bz2
gentoo-236b6f1d730dcc9141ed4201ab2c33dacfe0f9d5.zip
net-libs/ngtcp2: add 1.4.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-1.4.0.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index 4c7e3f57e631..c9413c8b4294 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-1.1.0.tar.xz 595536 BLAKE2B df37cede58fe67e9121d3c985a6d26b3534a2ef2805a9fb0ee92369d87e849164916e36c23b0e3055b4fa817307b1aa47cc1c0bfe3b03690401f00c0f050b9e8 SHA512 0de7d1aa67a5dbbf718313f90b7535980d29902a3d7e7a8a5e0362ec54b5ffe00ec2e844262ab05ddf6a0f3a1acc716a9b6df181121f8c3b66e138a91cfbe067
DIST ngtcp2-1.2.0.tar.xz 598000 BLAKE2B 7594817c3a26a41f8d32145d81be6060f51830d671b6bfea40c400be6fda75cb0b61b78bb58d6773dcc369ecd977d9f9e871ed5a9b90e80021e11545bec240ab SHA512 98a5724df82340d9448e0d11393bf9638aeb766edcae67255fb421538fba05e01f56fd16b85b157b21ff086696508f2d9ca410e81b8495411afcce77325c241a
DIST ngtcp2-1.3.0.tar.xz 615620 BLAKE2B b8ec40c02979b0f25c1655c3c4a40c5a604d83f049e19793ef920bb21728be212e8e5b3f727c06b2a4fc1641ab8c12f81d24fcf2b623280fd0c1d100f338c650 SHA512 08ef43bb967dc0ca625975cca69e05903490b597531c65234077669cb39b5a28b60ff76726006ce6c4531d6c099d88dde63517f7b7d00e20ec5a879b87a30223
+DIST ngtcp2-1.4.0.tar.xz 618480 BLAKE2B a04010fa227a4cbe4ddb2036034a4eb97d80a410d2aa3959e2af48248e9dfe754c05b2d6b4b2d157c850f3d018d71d6dec1830f51e318f62a00b8fb3aa295ea3 SHA512 6491f158cd3bd659d593810935ceedefea8ee4a77e0a1952c0300f83188d0af1ef8313b24f9dbd3e7a795b6ad9099d2681b70ff1bafd92eed429ee028b2f2dea
diff --git a/net-libs/ngtcp2/ngtcp2-1.4.0.ebuild b/net-libs/ngtcp2/ngtcp2-1.4.0.ebuild
new file mode 100644
index 000000000000..1f15a2e28c49
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-1.4.0.ebuild
@@ -0,0 +1,52 @@
+# 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 ~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
+}