commit:     36fdef55bd802e6ee9f3e85816c2296bee2c2c46
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Thu May  9 14:20:09 2024 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Thu May  9 14:21:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36fdef55

net-libs/ngtcp2: add 1.5.0

Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-libs/ngtcp2/Manifest            |  1 +
 net-libs/ngtcp2/ngtcp2-1.5.0.ebuild | 52 +++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index c9413c8b4294..791d735d120a 100644
--- a/net-libs/ngtcp2/Manifest
+++ b/net-libs/ngtcp2/Manifest
@@ -3,3 +3,4 @@ DIST ngtcp2-1.1.0.tar.xz 595536 BLAKE2B 
df37cede58fe67e9121d3c985a6d26b3534a2ef2
 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
+DIST ngtcp2-1.5.0.tar.xz 627464 BLAKE2B 
6a6fc91f2755d9cbccd6118b53b56b0b4fd3b445c9a491a2d7469ad59d7fe1983516eb79242196db009e7b0875c4db5305bd4c285d2437073b605033f812084d
 SHA512 
6c05beccac5d53c575ceaa594ac6b1d91ae9f0be01394b3520e84b51a44d3c6a71612c2c6f613d3d1b9d2992a83a68696fedbfdc3842f02d4009c95b463ad97f

diff --git a/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild 
b/net-libs/ngtcp2/ngtcp2-1.5.0.ebuild
new file mode 100644
index 000000000000..1f15a2e28c49
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-1.5.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
+}

Reply via email to