From 3ee60d130c2f5b459be7c0450e165e8bf765dda6 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 25 Jul 2025 13:52:24 -0400 Subject: [PATCH] net-libs/nghttp3: add 1.11.0 Signed-off-by: Craig Andrews --- net-libs/nghttp3/Manifest | 1 + net-libs/nghttp3/nghttp3-1.11.0.ebuild | 48 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 net-libs/nghttp3/nghttp3-1.11.0.ebuild diff --git a/net-libs/nghttp3/Manifest b/net-libs/nghttp3/Manifest index bdc344cc89b5c..3d8f4822c58a8 100644 --- a/net-libs/nghttp3/Manifest +++ b/net-libs/nghttp3/Manifest @@ -1,3 +1,4 @@ DIST nghttp3-1.10.1.tar.xz 398744 BLAKE2B bc3dd42cff504af4f86ad18a7afbf817dd1b753018e1bd95bf15dd3d9be6f348369cbbbcf34643c98771c24c9b1bee6f5bc5e0f7fe43b424fbc38fc6a1f1d403 SHA512 323efd9211cedd0c177c001a9bed0b934b784da685d103b9512992eaaa6e536bc503708f02bc54d3b4f170baf818296aa90ed24839c116188720028d60446641 +DIST nghttp3-1.11.0.tar.xz 405816 BLAKE2B d686677c3267ef6c5dd013a957f3c57f2404d538072d1e374458c1b6f6e98bd96ca376fbcadb20bead30aa558981073d65c3e64f9c9141ba8e5ba16b3aaba6b1 SHA512 4db416e737cba71fd073388a7da33888226c9872888313def0add0895a58afde3c62ad029e0aee350c53e392c75819b21c1c056774365154a803be3eeb01d0f6 DIST nghttp3-1.8.0.tar.xz 398640 BLAKE2B 14866d9efdfc847367dde782770f43374209bd4229fa621c3142bb6c8ac3b3db6feb34e7732365edaded49b6d27ca9c02b376d11a082c6f7ad2b3e8b4d799e01 SHA512 01b7a6e313e13ebfecd63afdfaed8c8518b49cff64d08359ec7fb7f05f2dc615c4d58a8338d789e54c2d85cb5fa8e2151c91df40ec39826283f7328fc86fc18b DIST nghttp3-1.9.0.tar.xz 400208 BLAKE2B d7d0807c3b445db9a8304273c99b4febdc962c505ce67af5ab5ccbd1434316291f5b41b3834c6462a950f94f6d434d3655b77fe1df78d2f5c758a8c1a2dc0639 SHA512 acef4156878047fcc44669888911cb2bcf255c11106da8342349406b906d46f641b59e295a1b650815d896465bebcbc6652581d906ce348ef8d07442b307f862 diff --git a/net-libs/nghttp3/nghttp3-1.11.0.ebuild b/net-libs/nghttp3/nghttp3-1.11.0.ebuild new file mode 100644 index 0000000000000..cc9fdc61d9e58 --- /dev/null +++ b/net-libs/nghttp3/nghttp3-1.11.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Built with autotools rather than cmake to avoid circular dep (bug #951524) + +inherit multilib-minimal + +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/ngtcp2/nghttp3.git" + inherit autotools git-r3 +else + SRC_URI="https://github.com/ngtcp2/nghttp3/releases/download/v${PV}/${P}.tar.xz" + inherit libtool + + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" +fi + +DESCRIPTION="HTTP/3 library written in C" +HOMEPAGE="https://github.com/ngtcp2/nghttp3" + +LICENSE="MIT" +SLOT="0/0" + +src_prepare() { + default + if [[ ${PV} == 9999 ]]; then + eautoreconf + else + elibtoolize + fi +} + +multilib_src_configure() { + local myeconfargs=( + --disable-werror + --disable-debug + --enable-lib-only + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + find "${ED}"/usr -type f -name '*.la' -delete || die +}