commit:     b2ae6054fdd15dc6220484ab0a1f1ff30c3b1995
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 17 04:14:52 2024 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 04:16:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2ae6054

net-libs/nghttp3: add 1.2.0

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

 net-libs/nghttp3/Manifest             |  1 +
 net-libs/nghttp3/nghttp3-1.2.0.ebuild | 40 +++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/net-libs/nghttp3/Manifest b/net-libs/nghttp3/Manifest
index 031a268d09b2..f328e6aa2949 100644
--- a/net-libs/nghttp3/Manifest
+++ b/net-libs/nghttp3/Manifest
@@ -1 +1,2 @@
 DIST nghttp3-1.1.0.tar.xz 369832 BLAKE2B 
d6b5ddf7d5809159f4f4d4f8b1750009d05d686bdfdaa882d242cf729f6cc7a950d6095aa0ab22b18d2d9dd7132d0f493bacc635617b5c74f993052bcbb964ce
 SHA512 
30330a8002a296be4441f88f444436baba5e989b8c07dc95c55b43c85de8c2f995b000e88c6d44dc98449c10d9648dd45f641b8b24c0577c3b93e90faeba78b4
+DIST nghttp3-1.2.0.tar.xz 387592 BLAKE2B 
b3ad897fda5d616a93f063bafde760eda6f597c90de6c81793abef3ff30de05bb2a06388fa868f95c0871a6592331d17a2d344c63817179ad21c6390bc0e499b
 SHA512 
51ade6b17215eb15c92b18ad7a94b70e0a442d5968aee31ec734e5826d09ca34197e64407a1ac3f7bfb4ed1a0b3c3b58afc4a152542bacdcc4c71140931a7652

diff --git a/net-libs/nghttp3/nghttp3-1.2.0.ebuild 
b/net-libs/nghttp3/nghttp3-1.2.0.ebuild
new file mode 100644
index 000000000000..c93630cc9fef
--- /dev/null
+++ b/net-libs/nghttp3/nghttp3-1.2.0.ebuild
@@ -0,0 +1,40 @@
+# 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/nghttp3.git";
+       inherit git-r3
+else
+       
SRC_URI="https://github.com/ngtcp2/nghttp3/releases/download/v${PV}/${P}.tar.xz";
+       KEYWORDS="~amd64 ~arm64 ~hppa"
+fi
+
+DESCRIPTION="HTTP/3 library written in C"
+HOMEPAGE="https://github.com/ngtcp2/nghttp3/";
+
+LICENSE="MIT"
+SLOT="0/0"
+IUSE="static-libs test"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
+RDEPEND=""
+RESTRICT="!test? ( test )"
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               -DENABLE_LIB_ONLY=ON
+               -DENABLE_STATIC_LIB=$(usex static-libs)
+               -DENABLE_EXAMPLES=OFF
+               -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test)
+       )
+       cmake_src_configure
+}
+
+multilib_src_test() {
+       cmake_build check
+}

Reply via email to