1 |
commit: 7ba0adcf1567d832bf81026b28c0105a705a2d96 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 13 15:53:43 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=7ba0adcf |
7 |
|
8 |
net-libs/nghttp3: HTTP/3 library written in C |
9 |
|
10 |
Closes: https://bugs.gentoo.org/694304 |
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/nghttp3/Manifest | 1 + |
15 |
net-libs/nghttp3/metadata.xml | 11 ++++++++ |
16 |
net-libs/nghttp3/nghttp3-0_pre20190912.ebuild | 40 +++++++++++++++++++++++++++ |
17 |
net-libs/nghttp3/nghttp3-9999.ebuild | 38 +++++++++++++++++++++++++ |
18 |
4 files changed, 90 insertions(+) |
19 |
|
20 |
diff --git a/net-libs/nghttp3/Manifest b/net-libs/nghttp3/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..6280de1439d |
23 |
--- /dev/null |
24 |
+++ b/net-libs/nghttp3/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST nghttp3-0_pre20190912.tar.gz 155172 BLAKE2B fabd472e429222502288b7a4030b4aa51f8a1b609590d63b51ab3f918b8cdb462b766a40911986b3f72f2f1b0debee1f0ebdf8802991bf4fc5d4a6d14297bdcc SHA512 89c7b40843bde9d2c2ab24211794b6ae0e1fa15413e92dcf2238b876552f29bb2f0db724d9a205c2a1c98f25a14ef570c9e53df52fb519230b6f78dcc04d2117 |
27 |
|
28 |
diff --git a/net-libs/nghttp3/metadata.xml b/net-libs/nghttp3/metadata.xml |
29 |
new file mode 100644 |
30 |
index 00000000000..d47d5faabf8 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/nghttp3/metadata.xml |
33 |
@@ -0,0 +1,11 @@ |
34 |
+<?xml version="1.0" encoding="UTF-8"?> |
35 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
36 |
+<pkgmetadata> |
37 |
+ <maintainer type="person"> |
38 |
+ <email>candrews@××××××××××××.com</email> |
39 |
+ <name>Craig Andrews</name> |
40 |
+ </maintainer> |
41 |
+ <upstream> |
42 |
+ <remote-id type="github">ngtcp2/ngtcp2</remote-id> |
43 |
+ </upstream> |
44 |
+</pkgmetadata> |
45 |
|
46 |
diff --git a/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild b/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..6489dde91d8 |
49 |
--- /dev/null |
50 |
+++ b/net-libs/nghttp3/nghttp3-0_pre20190912.ebuild |
51 |
@@ -0,0 +1,40 @@ |
52 |
+# Copyright 1999-2019 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=7 |
56 |
+ |
57 |
+inherit cmake-multilib |
58 |
+ |
59 |
+if [[ ${PV} == 9999 ]] ; then |
60 |
+ EGIT_REPO_URI="https://github.com/ngtcp2/nghttp3.git" |
61 |
+ inherit autotools git-r3 |
62 |
+else |
63 |
+ GIT_COMMIT="51379a041174ad953dc6ad437712f3b279f81919" |
64 |
+ SRC_URI="https://github.com/ngtcp2/nghttp3/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
65 |
+ S="${WORKDIR}/${PN}-${GIT_COMMIT}" |
66 |
+ KEYWORDS="~amd64" |
67 |
+fi |
68 |
+ |
69 |
+DESCRIPTION="HTTP/3 library written in C" |
70 |
+HOMEPAGE="https://github.com/ngtcp2/nghttp3/" |
71 |
+ |
72 |
+LICENSE="MIT" |
73 |
+SLOT="0/0" |
74 |
+IUSE="test" |
75 |
+ |
76 |
+BDEPEND="virtual/pkgconfig" |
77 |
+DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )" |
78 |
+RDEPEND="" |
79 |
+ |
80 |
+multilib_src_configure() { |
81 |
+ local mycmakeargs=( |
82 |
+ -DENABLE_LIB_ONLY=ON |
83 |
+ -DENABLE_EXAMPLES=OFF |
84 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test) |
85 |
+ ) |
86 |
+ cmake-utils_src_configure |
87 |
+} |
88 |
+ |
89 |
+multilib_src_test() { |
90 |
+ cmake-utils_src_make check |
91 |
+} |
92 |
|
93 |
diff --git a/net-libs/nghttp3/nghttp3-9999.ebuild b/net-libs/nghttp3/nghttp3-9999.ebuild |
94 |
new file mode 100644 |
95 |
index 00000000000..62a48b643ad |
96 |
--- /dev/null |
97 |
+++ b/net-libs/nghttp3/nghttp3-9999.ebuild |
98 |
@@ -0,0 +1,38 @@ |
99 |
+# Copyright 1999-2019 Gentoo Authors |
100 |
+# Distributed under the terms of the GNU General Public License v2 |
101 |
+ |
102 |
+EAPI=7 |
103 |
+ |
104 |
+inherit cmake-multilib |
105 |
+ |
106 |
+if [[ ${PV} == 9999 ]] ; then |
107 |
+ EGIT_REPO_URI="https://github.com/ngtcp2/nghttp3.git" |
108 |
+ inherit autotools git-r3 |
109 |
+else |
110 |
+ SRC_URI="https://github.com/ngtcp2/nghttp3/releases/download/v${PV}/${P}.tar.xz" |
111 |
+ KEYWORDS="~amd64" |
112 |
+fi |
113 |
+ |
114 |
+DESCRIPTION="HTTP/3 library written in C" |
115 |
+HOMEPAGE="https://github.com/ngtcp2/nghttp3/" |
116 |
+ |
117 |
+LICENSE="MIT" |
118 |
+SLOT="0/0" |
119 |
+IUSE="test" |
120 |
+ |
121 |
+BDEPEND="virtual/pkgconfig" |
122 |
+DEPEND="test? ( >=dev-util/cunit-2.1[${MULTILIB_USEDEP}] )" |
123 |
+RDEPEND="" |
124 |
+ |
125 |
+multilib_src_configure() { |
126 |
+ local mycmakeargs=( |
127 |
+ -DENABLE_LIB_ONLY=ON |
128 |
+ -DENABLE_EXAMPLES=OFF |
129 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_CUnit=$(usex !test) |
130 |
+ ) |
131 |
+ cmake-utils_src_configure |
132 |
+} |
133 |
+ |
134 |
+multilib_src_test() { |
135 |
+ cmake-utils_src_make check |
136 |
+} |