Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/base/, net-libs/ngtcp2/
Date: Fri, 13 Sep 2019 20:38:29
Message-Id: 1568407085.0672cd383b8c56f782656d6631e2c2ba81f85372.candrews@gentoo
1 commit: 0672cd383b8c56f782656d6631e2c2ba81f85372
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 13 15:53:06 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 13 20:38:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0672cd38
7
8 net-libs/ngtcp2: Implementation of the IETF QUIC Protocol
9
10 Closes: https://bugs.gentoo.org/694306
11 Package-Manager: Portage-2.3.76, Repoman-2.3.17
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 net-libs/ngtcp2/Manifest | 1 +
15 net-libs/ngtcp2/metadata.xml | 11 ++++++++
16 net-libs/ngtcp2/ngtcp2-0_pre20190912.ebuild | 42 +++++++++++++++++++++++++++++
17 net-libs/ngtcp2/ngtcp2-9999.ebuild | 40 +++++++++++++++++++++++++++
18 profiles/base/package.use.mask | 5 ++++
19 5 files changed, 99 insertions(+)
20
21 diff --git a/net-libs/ngtcp2/Manifest b/net-libs/ngtcp2/Manifest
22 new file mode 100644
23 index 00000000000..736d30a7873
24 --- /dev/null
25 +++ b/net-libs/ngtcp2/Manifest
26 @@ -0,0 +1 @@
27 +DIST ngtcp2-0_pre20190912.tar.gz 302984 BLAKE2B 906b248b0c19395288ed2c5ad55c8d42a9df9d76458104785c1013b9ebfaf1b92a4b87ced8755377fcb627018cf8854be0e4687e4c8a23ae994e5a21f466f739 SHA512 91b93575143960af421e8bd37d686602905fa3093750cfbbe3af1b20d743318281d22162676dc451562768ca08b6d0767b1dc28f3f8f6733235ebd76015a05bb
28
29 diff --git a/net-libs/ngtcp2/metadata.xml b/net-libs/ngtcp2/metadata.xml
30 new file mode 100644
31 index 00000000000..d47d5faabf8
32 --- /dev/null
33 +++ b/net-libs/ngtcp2/metadata.xml
34 @@ -0,0 +1,11 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>candrews@××××××××××××.com</email>
40 + <name>Craig Andrews</name>
41 + </maintainer>
42 + <upstream>
43 + <remote-id type="github">ngtcp2/ngtcp2</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/net-libs/ngtcp2/ngtcp2-0_pre20190912.ebuild b/net-libs/ngtcp2/ngtcp2-0_pre20190912.ebuild
48 new file mode 100644
49 index 00000000000..a6601829101
50 --- /dev/null
51 +++ b/net-libs/ngtcp2/ngtcp2-0_pre20190912.ebuild
52 @@ -0,0 +1,42 @@
53 +# Copyright 1999-2019 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +inherit cmake-multilib
59 +
60 +if [[ ${PV} == 9999 ]] ; then
61 + EGIT_REPO_URI="https://github.com/ngtcp2/ngtcp2.git"
62 + inherit autotools git-r3
63 +else
64 + GIT_COMMIT="5122d9e5e1e91c718ebc3933252ee42522c6e942"
65 + SRC_URI="https://github.com/ngtcp2/ngtcp2/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
66 + S="${WORKDIR}/${PN}-${GIT_COMMIT}"
67 + KEYWORDS="~amd64"
68 +fi
69 +
70 +DESCRIPTION="Implementation of the IETF QUIC Protocol"
71 +HOMEPAGE="https://github.com/ngtcp2/ngtcp2/"
72 +
73 +LICENSE="MIT"
74 +SLOT="0/0"
75 +IUSE="ssl test"
76 +
77 +BDEPEND="virtual/pkgconfig"
78 +DEPEND="ssl? ( >=dev-libs/openssl-1.1.1:0= )
79 + test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
80 +RDEPEND=""
81 +
82 +multilib_src_configure() {
83 + local mycmakeargs=(
84 + -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=$(usex !ssl)
85 + -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
86 + -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
87 + -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test)
88 + )
89 + cmake-utils_src_configure
90 +}
91 +
92 +multilib_src_test() {
93 + cmake-utils_src_make check
94 +}
95
96 diff --git a/net-libs/ngtcp2/ngtcp2-9999.ebuild b/net-libs/ngtcp2/ngtcp2-9999.ebuild
97 new file mode 100644
98 index 00000000000..32d61da3932
99 --- /dev/null
100 +++ b/net-libs/ngtcp2/ngtcp2-9999.ebuild
101 @@ -0,0 +1,40 @@
102 +# Copyright 1999-2019 Gentoo Authors
103 +# Distributed under the terms of the GNU General Public License v2
104 +
105 +EAPI=7
106 +
107 +inherit cmake-multilib
108 +
109 +if [[ ${PV} == 9999 ]] ; then
110 + EGIT_REPO_URI="https://github.com/ngtcp2/ngtcp2.git"
111 + inherit autotools git-r3
112 +else
113 + SRC_URI="https://github.com/ngtcp2/ngtcp2/releases/download/v${PV}/${P}.tar.xz"
114 + KEYWORDS="~amd64"
115 +fi
116 +
117 +DESCRIPTION="Implementation of the IETF QUIC Protocol"
118 +HOMEPAGE="https://github.com/ngtcp2/ngtcp2/"
119 +
120 +LICENSE="MIT"
121 +SLOT="0/0"
122 +IUSE="ssl test"
123 +
124 +BDEPEND="virtual/pkgconfig"
125 +DEPEND="ssl? ( >=dev-libs/openssl-1.1.1:0= )
126 + test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )"
127 +RDEPEND=""
128 +
129 +multilib_src_configure() {
130 + local mycmakeargs=(
131 + -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=$(usex !ssl)
132 + -DCMAKE_DISABLE_FIND_PACKAGE_Libev=ON
133 + -DCMAKE_DISABLE_FIND_PACKAGE_Libnghttp3=ON
134 + -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test)
135 + )
136 + cmake-utils_src_configure
137 +}
138 +
139 +multilib_src_test() {
140 + cmake-utils_src_make check
141 +}
142
143 diff --git a/profiles/base/package.use.mask b/profiles/base/package.use.mask
144 index 83f2781aa51..bb2dc3c5611 100644
145 --- a/profiles/base/package.use.mask
146 +++ b/profiles/base/package.use.mask
147 @@ -7,6 +7,11 @@
148 # This file is only for generic masks. For arch-specific masks (i.e.
149 # mask everywhere, unmask on arch/*) use arch/base.
150
151 +# Craig Andrews <candrews@g.o> (2019-09-12)
152 +# OpenSSL (as of version 1.1.1) doesn't have APIs for QUIC support
153 +# see https://github.com/openssl/openssl/pull/8797
154 +net-libs/ngtcp2 ssl
155 +
156 # Michał Górny <mgorny@g.o> (2019-09-08)
157 # LLVM 5 is being removed.
158 ~dev-ada/gps-2018 gnat_2017