1 |
commit: d96d88470e156c7750c4ac68c398b1076f38051d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 18 15:24:04 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 18 15:25:22 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d96d8847 |
7 |
|
8 |
net-libs/nghttp2: Bump to version 1.38.0 |
9 |
|
10 |
Added patch to unbundle http-parser lib |
11 |
|
12 |
Bug: https://bugs.gentoo.org/675772 |
13 |
Package-Manager: Portage-2.3.63, Repoman-2.3.12 |
14 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
15 |
|
16 |
net-libs/nghttp2/Manifest | 2 + |
17 |
net-libs/nghttp2/nghttp2-1.38.0.ebuild | 87 ++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 89 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/nghttp2/Manifest b/net-libs/nghttp2/Manifest |
21 |
index 8acfd125488..f98abcad1ef 100644 |
22 |
--- a/net-libs/nghttp2/Manifest |
23 |
+++ b/net-libs/nghttp2/Manifest |
24 |
@@ -1,3 +1,5 @@ |
25 |
DIST nghttp2-1.33.0.tar.xz 1554776 BLAKE2B 1b995d6385188423acbcd7c8b3a626a622270bc3079972885a1f707a9cc4ebb053f7347930ce217d2cf4277eab0a3309accb8f9ff18bd8ccc55c86aefa6246c3 SHA512 eeb0bf64fea115444c685c8a01c1017ce96be18adf88ffcdecad067de7012ca61c6b2b6a627b18e2572bba7bd77ec56a3ca4b1109f7a4b21220e8e28687b5b74 |
26 |
DIST nghttp2-1.36.0.tar.xz 1629020 BLAKE2B 7c116988c22801688c50d6d514ddb904920cc54d3c3d141137e6ed8b2182ef4e670f0a0fdebaeabfe0df8cdea4cfd1ee3fb083628f035201f104de6f3614dd25 SHA512 4e0d5c5cdb4f1b7e5f12790850237f36649af4aa9596033392725972e4e0e5a33bb78bd1aa0735e35e489b523b7e9a236a7b5847dfca69bd7583fcab36c13c76 |
27 |
DIST nghttp2-1.37.0.tar.xz 1628248 BLAKE2B ed5cdfda44b4e38a03d92352520eb765cc1da99080e0cd3e9d663efd5ef2ff219c6ccdbc16cfde001a8377afc796acef250913e1eb422ae2cac2eb95b8f98089 SHA512 67a4b9df3f7f0edad719011fa289d9aa9ef04f31ef3ccf826b861c8830ed24e0743a33b54ab66d198fec7edbf723852b38a2007b335d7f566f702f4b02297b0f |
28 |
+DIST nghttp2-1.38.0-unbundle_http_parser.patch.xz 2616 BLAKE2B 3f15154d33f32c91aad87f23f56d761501e19e0b53b99d4df720f9e04d6d9c49a52118acbe3da87f8585c2b71b7b430ef60fc33465605f3bf9933635aabb924d SHA512 1b4377b34cf6428164011be9fc86efdd7ab8d3443edf197c45768beea0f843084a842c4cb2abc5179d6036ec99174557e06344ce67a07d98992de64d99faf3a6 |
29 |
+DIST nghttp2-1.38.0.tar.xz 1628356 BLAKE2B 0568d4ac5c1e5e6d7adf762815836502524d59fb55c623f344a8427638407a19447fe1a7753142aa205898f7bda6ebce8ef6f4d85edc6da98ffa98b83d4e363e SHA512 e432d52bcf77379ed5c10ceafb587ec8d66c56bb728cda56487b237cbab1d0073689624419ed306162dab3a51b91cfe0f59cb173b5d81346e2b6d0abd56635bc |
30 |
|
31 |
diff --git a/net-libs/nghttp2/nghttp2-1.38.0.ebuild b/net-libs/nghttp2/nghttp2-1.38.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..9b47d5f44b5 |
34 |
--- /dev/null |
35 |
+++ b/net-libs/nghttp2/nghttp2-1.38.0.ebuild |
36 |
@@ -0,0 +1,87 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+# TODO: Add python support. |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+inherit autotools multilib-minimal |
45 |
+ |
46 |
+if [[ ${PV} == 9999 ]] ; then |
47 |
+ EGIT_REPO_URI="https://github.com/nghttp2/nghttp2.git" |
48 |
+ inherit git-r3 |
49 |
+else |
50 |
+ SRC_URI="https://github.com/nghttp2/nghttp2/releases/download/v${PV}/${P}.tar.xz" |
51 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
52 |
+fi |
53 |
+ |
54 |
+# 675772 |
55 |
+SRC_URI+=" https://dev.gentoo.org/~polynomial-c/${PN}-1.38.0-unbundle_http_parser.patch.xz" |
56 |
+ |
57 |
+DESCRIPTION="HTTP/2 C Library" |
58 |
+HOMEPAGE="https://nghttp2.org/" |
59 |
+ |
60 |
+LICENSE="MIT" |
61 |
+SLOT="0/1.14" # <C++>.<C> SONAMEs |
62 |
+IUSE="cxx debug hpack-tools jemalloc libressl static-libs test +threads utils xml" |
63 |
+ |
64 |
+SSL_DEPEND=" |
65 |
+ !libressl? ( >=dev-libs/openssl-1.0.2:0=[-bindist,${MULTILIB_USEDEP}] ) |
66 |
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] ) |
67 |
+" |
68 |
+RDEPEND=" |
69 |
+ cxx? ( |
70 |
+ ${SSL_DEPEND} |
71 |
+ dev-libs/boost:=[${MULTILIB_USEDEP},threads] |
72 |
+ >=net-libs/http-parser-2.9.1:= |
73 |
+ ) |
74 |
+ hpack-tools? ( |
75 |
+ >=dev-libs/jansson-2.5 |
76 |
+ >=net-libs/http-parser-2.9.1:= |
77 |
+ ) |
78 |
+ jemalloc? ( dev-libs/jemalloc[${MULTILIB_USEDEP}] ) |
79 |
+ utils? ( |
80 |
+ ${SSL_DEPEND} |
81 |
+ >=dev-libs/libev-4.15[${MULTILIB_USEDEP}] |
82 |
+ >=sys-libs/zlib-1.2.3[${MULTILIB_USEDEP}] |
83 |
+ net-dns/c-ares:=[${MULTILIB_USEDEP}] |
84 |
+ ) |
85 |
+ xml? ( >=dev-libs/libxml2-2.7.7:2[${MULTILIB_USEDEP}] )" |
86 |
+DEPEND="${RDEPEND} |
87 |
+ virtual/pkgconfig |
88 |
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${WORKDIR}/${PN}-1.38.0-unbundle_http_parser.patch" |
92 |
+) |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ default |
96 |
+ # Remove bundled stuff |
97 |
+ rm -r third-party/http-parser || die |
98 |
+ eautoreconf |
99 |
+} |
100 |
+ |
101 |
+multilib_src_configure() { |
102 |
+ local myeconfargs=( |
103 |
+ --disable-examples |
104 |
+ --disable-failmalloc |
105 |
+ --disable-python-bindings |
106 |
+ --disable-werror |
107 |
+ --without-bundled-http_parser |
108 |
+ --without-cython |
109 |
+ $(use_enable cxx asio-lib) |
110 |
+ $(use_enable debug) |
111 |
+ $(multilib_native_use_enable hpack-tools) |
112 |
+ $(use_enable static-libs static) |
113 |
+ $(use_enable threads) |
114 |
+ $(multilib_native_use_enable utils app) |
115 |
+ $(multilib_native_use_with jemalloc) |
116 |
+ $(multilib_native_use_with xml libxml2) |
117 |
+ ) |
118 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
119 |
+} |
120 |
+ |
121 |
+multilib_src_install_all() { |
122 |
+ use static-libs || find "${ED%/}"/usr -name '*.la' -delete |
123 |
+} |