1 |
commit: 3e8965a68baf3e32b79ca68077e0aeda0555c2d6 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 13:52:52 2022 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 1 13:54:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e8965a6 |
7 |
|
8 |
net-libs/ngtcp2: add 0.8.1 |
9 |
|
10 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
11 |
|
12 |
net-libs/ngtcp2/Manifest | 1 + |
13 |
net-libs/ngtcp2/ngtcp2-0.8.1.ebuild | 51 +++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest |
17 |
index 8e3db5e45c86..043f6dea3ad1 100644 |
18 |
--- a/net-libs/ngtcp2/Manifest |
19 |
+++ b/net-libs/ngtcp2/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST ngtcp2-0.7.0.tar.xz 573964 BLAKE2B 178d51fd41486620c1546b94ca5c6ac1072e7185d864251ce83d3ef7fc7b53e41f283937dd9c7b7771de7dbec099c8a308086c93929878035db7962efd821d70 SHA512 21b4506936e3dffaa06499d3b5f782212e369326f5d71cda65d76c92b0f5518937c83d791e8e5ffcd7ca8efbeeb33ed88c0c592571bf9ff4e32c53b261f6a548 |
22 |
DIST ngtcp2-0.8.0.tar.xz 581752 BLAKE2B 0bd124c840d56cf8324a2d3de9748e3426944c1ac9436438ced807cda269e4e199d81fc1a9a8c4f7e6a0eb93d474006875c99eafda94d42dc518ea1f6ff00662 SHA512 d8ba29d55c1ad01c04e0d62fca4c1ed97e9e0bfd5dcb889dc1cb2b0a1188554ceb9bf2f92ece15eabfffb34eb992f5ac924f14077aba0de2e11246947b16d518 |
23 |
+DIST ngtcp2-0.8.1.tar.xz 578944 BLAKE2B d53af801b1d3646f8360070753bad903a8857f5533d5ac8957d35801f4e8bcf7b07902cfba2190f0037635cd3e1ec56967b90df7185b5e32bd9a0cd4f6709972 SHA512 dae2975076a7f060d3b09b1fea9be116b534323d63c35a47dd0db0f8f9932c0d9655e95c0b14a58d8808f4caa6823fe25e340ac9564ea8d02fe008b981df4f0e |
24 |
|
25 |
diff --git a/net-libs/ngtcp2/ngtcp2-0.8.1.ebuild b/net-libs/ngtcp2/ngtcp2-0.8.1.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..24ec2747596c |
28 |
--- /dev/null |
29 |
+++ b/net-libs/ngtcp2/ngtcp2-0.8.1.ebuild |
30 |
@@ -0,0 +1,51 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit cmake-multilib |
37 |
+ |
38 |
+if [[ ${PV} == 9999 ]] ; then |
39 |
+ EGIT_REPO_URI="https://github.com/ngtcp2/ngtcp2.git" |
40 |
+ inherit git-r3 |
41 |
+else |
42 |
+ SRC_URI="https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz" |
43 |
+ KEYWORDS="~amd64 ~hppa" |
44 |
+fi |
45 |
+ |
46 |
+DESCRIPTION="Implementation of the IETF QUIC Protocol" |
47 |
+HOMEPAGE="https://github.com/ngtcp2/ngtcp2/" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0/0" |
51 |
+IUSE="+gnutls openssl +ssl test" |
52 |
+REQUIRED_USE="ssl? ( || ( gnutls openssl ) )" |
53 |
+ |
54 |
+BDEPEND="virtual/pkgconfig" |
55 |
+RDEPEND=" |
56 |
+ ssl? ( |
57 |
+ gnutls? ( >=net-libs/gnutls-3.7.2:0= ) |
58 |
+ openssl? ( |
59 |
+ >=dev-libs/openssl-1.1.1:0= |
60 |
+ ) |
61 |
+ )" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )" |
64 |
+RESTRICT="!test? ( test )" |
65 |
+ |
66 |
+multilib_src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DENABLE_GNUTLS=$(usex gnutls) |
69 |
+ -DENABLE_OPENSSL=$(usex openssl) |
70 |
+ -DENABLE_BORINGSSL=OFF |
71 |
+ -DENABLE_PICOTLS=OFF |
72 |
+ -DENABLE_WOLFSSL=OFF |
73 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON |
74 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON |
75 |
+ ) |
76 |
+ cmake_src_configure |
77 |
+} |
78 |
+ |
79 |
+multilib_src_test() { |
80 |
+ cmake_build check |
81 |
+} |