summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2023-10-23 09:14:22 -0400
committerCraig Andrews <candrews@gentoo.org>2023-10-23 09:19:22 -0400
commita5230cb0ebac9d9626972127d6718110c9db290c (patch)
treec358ce17c28ca600e6f4501802fa2324ef1ac001
parentnet-p2p/{bitcoin-core,bitcoin-qt}: rename bitcoin-core[qt5 → gui] (diff)
downloadgentoo-a5230cb0ebac9d9626972127d6718110c9db290c.tar.gz
gentoo-a5230cb0ebac9d9626972127d6718110c9db290c.tar.bz2
gentoo-a5230cb0ebac9d9626972127d6718110c9db290c.zip
net-libs/ngtcp2: add 1.0.1
Signed-off-by: Craig Andrews <candrews@gentoo.org>
-rw-r--r--net-libs/ngtcp2/Manifest1
-rw-r--r--net-libs/ngtcp2/ngtcp2-1.0.1.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
index af65dee2f544..2ec7c5b1239e 100644
--- a/net-libs/ngtcp2/Manifest
+++ b/net-libs/ngtcp2/Manifest
@@ -1,2 +1,3 @@
DIST ngtcp2-0.14.1.tar.xz 585788 BLAKE2B 68574767c701432e7558fa85cbad0d49934d220e292ceb82cdf19a715f247c6ec9b3a2b87def1176ade067a78c84bd3495936847a9a53fcadaff7b66971eca8d SHA512 52c55bc322d979d020ab3124a7cc0033d0f3e5649e3c8ee5f00aa64dbad83c4f199d50685704cc9372821e7fc81c59eea79f33894260b5dca171712d5b3899a0
DIST ngtcp2-1.0.0.tar.xz 595696 BLAKE2B 02caa4533b85d16d7fbf0a463fd7fc47aadc0d3873b70491c1dd408dbc43d0e7728d270cbb081cda39e713e59e5b6dee7cbdbb4b3f2c32c06db15086e06a707f SHA512 7bed2345d479b2efc6ca16166782889ae9cd91a0a5485c1c9bc16ac0a785e0089443baac5ed71029c86837438cf030a96964f71e7611caa18c34aef77cb9b4ce
+DIST ngtcp2-1.0.1.tar.xz 590100 BLAKE2B 3893e849777f5770d2c2f01e57fae8db81e2f1035b4f3c50d9bbc506780fe66dbc8744d3efa82ee8585862b72cb0fdde2f185e0e37f84845dc0b51f0985e38f2 SHA512 d3f7c05bd4f06ee4b98c2bea983bc281794af6d007900231972bfd7fc2d7f034e22323d26fa3a7e0a936cfecc2476d77e80ae6a8c81cca317e4ab17b25c44d61
diff --git a/net-libs/ngtcp2/ngtcp2-1.0.1.ebuild b/net-libs/ngtcp2/ngtcp2-1.0.1.ebuild
new file mode 100644
index 000000000000..c50194288f25
--- /dev/null
+++ b/net-libs/ngtcp2/ngtcp2-1.0.1.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
+}