Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nghttp2/
Date: Fri, 24 Jun 2022 09:52:45
Message-Id: 1656064356.d559e4940f827ab4b0ac80042959e65f8e03fd18.polynomial-c@gentoo
1 commit: d559e4940f827ab4b0ac80042959e65f8e03fd18
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 09:51:23 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 09:52:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d559e494
7
8 net-libs/nghttp2: Bump to version 1.48.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 net-libs/nghttp2/Manifest | 1 +
13 net-libs/nghttp2/nghttp2-1.48.0.ebuild | 76 ++++++++++++++++++++++++++++++++++
14 2 files changed, 77 insertions(+)
15
16 diff --git a/net-libs/nghttp2/Manifest b/net-libs/nghttp2/Manifest
17 index 575ac2674bd8..956e0da4cefe 100644
18 --- a/net-libs/nghttp2/Manifest
19 +++ b/net-libs/nghttp2/Manifest
20 @@ -1,3 +1,4 @@
21 DIST nghttp2-1.45.1.tar.xz 4017852 BLAKE2B 17bc5e0a6270494a0296da7f1394d0b89666ca42ad04bcce097740da2b30cdc575f17e681a8320dc2a2161eeebb753f22f228a340fc7cd690fa883d29149bcd8 SHA512 320a8c9f29b58c55df98be4312d415bc406edbdfb0765aa37570cdb472a84f40c4f95a51c44c5488363c16ad6815c75b5503b32e43d94724c54117ff583c7150
22 DIST nghttp2-1.46.0.tar.xz 4024972 BLAKE2B 85fe1259b791ff7cda163265f553e0aac8a10ef6674cf6152d5bc7747c7f4f3bc6e9d9c0472534dd7185f093936efed1b4632da64d426b6a7ac432657e8579a1 SHA512 fcf3573bcc421705190c7cf0e3230f6f3028b669cb2976d29cfeb73e706deaae91ce60d0a615472e3f296454049ea5798f1e8defdd260a98895e94fea6a7a16b
23 DIST nghttp2-1.47.0.tar.xz 4028580 BLAKE2B 4f5302701c8d8a89c3ae72cbb8acb4cbcbe32cd0e2995643e0b669cf802ae28e8f6e52b2d59f69f87e0d12fc64a73c251edbe01c2b0eca2676626a9e456df93f SHA512 ad6266a15789fec966db6be8ac0b9ee6cca257a3bb91fdd34a58acf0e472643a571941b5974d16c98f6ac5bfa6a03c4b70a6dff222fb0cd50909178b7e94ce48
24 +DIST nghttp2-1.48.0.tar.xz 4112072 BLAKE2B a52dc1ef4c9658298acef5ad703bec1708e538ebe19584dd5fcfe39089777e105594a998c7db696ee54bc8f17d3086828c09e921d8714b7ad3efbf33d04aaca0 SHA512 77c22371290f77e8a538b9efea225d23567cc27cb60b71703cbcb057839b5f117cf50796aa82bf4518f22b38a5773e90a1c273eafff4b17c435ac5858bdf7c6f
25
26 diff --git a/net-libs/nghttp2/nghttp2-1.48.0.ebuild b/net-libs/nghttp2/nghttp2-1.48.0.ebuild
27 new file mode 100644
28 index 000000000000..97b642d84a6d
29 --- /dev/null
30 +++ b/net-libs/nghttp2/nghttp2-1.48.0.ebuild
31 @@ -0,0 +1,76 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +# TODO: Add python support.
36 +
37 +EAPI=8
38 +
39 +inherit multilib-minimal
40 +
41 +if [[ ${PV} == 9999 ]] ; then
42 + EGIT_REPO_URI="https://github.com/nghttp2/nghttp2.git"
43 + inherit autotools git-r3
44 +else
45 + SRC_URI="https://github.com/nghttp2/nghttp2/releases/download/v${PV}/${P}.tar.xz"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +fi
48 +
49 +DESCRIPTION="HTTP/2 C Library"
50 +HOMEPAGE="https://nghttp2.org/"
51 +
52 +LICENSE="MIT"
53 +SLOT="0/1.14" # <C++>.<C> SONAMEs
54 +IUSE="cxx debug hpack-tools jemalloc static-libs test +threads utils xml"
55 +
56 +RESTRICT="!test? ( test )"
57 +
58 +SSL_DEPEND="
59 + >=dev-libs/openssl-1.0.2:0=[-bindist(-),${MULTILIB_USEDEP}]
60 +"
61 +RDEPEND="
62 + cxx? (
63 + ${SSL_DEPEND}
64 + dev-libs/boost:=[${MULTILIB_USEDEP},threads(+)]
65 + )
66 + hpack-tools? ( >=dev-libs/jansson-2.5:= )
67 + jemalloc? ( dev-libs/jemalloc:=[${MULTILIB_USEDEP}] )
68 + utils? (
69 + ${SSL_DEPEND}
70 + >=dev-libs/libev-4.15[${MULTILIB_USEDEP}]
71 + >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}]
72 + net-dns/c-ares:=[${MULTILIB_USEDEP}]
73 + )
74 + xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )"
75 +DEPEND="${RDEPEND}
76 + test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
77 +BDEPEND="virtual/pkgconfig"
78 +
79 +src_prepare() {
80 + default
81 + [[ ${PV} == 9999 ]] && eautoreconf
82 +}
83 +
84 +multilib_src_configure() {
85 + local myeconfargs=(
86 + --disable-examples
87 + --disable-failmalloc
88 + --disable-python-bindings
89 + --disable-werror
90 + --without-cython
91 + $(use_enable cxx asio-lib)
92 + $(use_enable debug)
93 + $(multilib_native_use_enable hpack-tools)
94 + $(use_enable static-libs static)
95 + $(use_enable threads)
96 + $(multilib_native_use_enable utils app)
97 + $(multilib_native_use_with jemalloc)
98 + $(multilib_native_use_with xml libxml2)
99 + )
100 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
101 +}
102 +
103 +multilib_src_install_all() {
104 + if ! use static-libs ; then
105 + find "${ED}"/usr -type f -name '*.la' -delete || die
106 + fi
107 +}