diff options
-rw-r--r-- | net-libs/ngtcp2/Manifest | 1 | ||||
-rw-r--r-- | net-libs/ngtcp2/ngtcp2-0.13.0.ebuild | 51 | ||||
-rw-r--r-- | net-libs/ngtcp2/ngtcp2-9999.ebuild | 2 |
3 files changed, 53 insertions, 1 deletions
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest index 1b2d9168b391..50939be375af 100644 --- a/net-libs/ngtcp2/Manifest +++ b/net-libs/ngtcp2/Manifest @@ -1,2 +1,3 @@ DIST ngtcp2-0.10.0.tar.xz 582248 BLAKE2B 11c7153742657afc2df3b339e95e66e1ebc657ac251e6f1c742fb091277a4f3364e57322994f7a947e97cb0fdaa786fb48635e35b33346f1c04ef3f73d9a8128 SHA512 40ace3188ad53293df80a0f3fb144ced21897089026a18f90f45fe2aaa0d0f18ad184666a08d96263942573ed96ffa65b5f1837a008bd348a9c68c82e7508310 DIST ngtcp2-0.12.1.tar.xz 581500 BLAKE2B f3dfb00301eb75b997bdcc27d9bf32807181a115bf5639159892fa19deab96a3acfee485b79b7edaf0b06032c28899efce40d1c07574670cd07a65edd3a694cb SHA512 ca1bd05b5469e7d88980eafdb2d84cffe6b21d394fcc86d94c6e57685bb779d225b944d42f6558af67e2cd4058dfeba3c963f0249654d7ebe69e20d75cb6f606 +DIST ngtcp2-0.13.0.tar.xz 583788 BLAKE2B bf704f546560695831ce38f75639201f77e32704040bdf4241d1cf8251b308490a833de543772c040853dba314fcd916974958f6619dda500ee9f199f7a71d0f SHA512 a14b0363edabdce595bf7eeb04a5664c69c87d43ffeb1ec1b1b801c6428a65e3fb202fddedb0696ced6511ad94793b3cd75972148b144d52606a1da944487b80 diff --git a/net-libs/ngtcp2/ngtcp2-0.13.0.ebuild b/net-libs/ngtcp2/ngtcp2-0.13.0.ebuild new file mode 100644 index 000000000000..534535cc4b98 --- /dev/null +++ b/net-libs/ngtcp2/ngtcp2-0.13.0.ebuild @@ -0,0 +1,51 @@ +# 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 ~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 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_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 +} diff --git a/net-libs/ngtcp2/ngtcp2-9999.ebuild b/net-libs/ngtcp2/ngtcp2-9999.ebuild index 707656ab86a7..b46e1455bcb4 100644 --- a/net-libs/ngtcp2/ngtcp2-9999.ebuild +++ b/net-libs/ngtcp2/ngtcp2-9999.ebuild @@ -10,7 +10,7 @@ if [[ ${PV} == 9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz" - KEYWORDS="~amd64 ~hppa ~riscv" + KEYWORDS="~amd64 ~hppa ~riscv ~x86" fi DESCRIPTION="Implementation of the IETF QUIC Protocol" |