1 |
commit: 5d7099dca23483891bc22124c0dda25dcf7706b6 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 15 22:07:37 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 15 22:13:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d7099dc |
7 |
|
8 |
net-libs/grpc: drop old |
9 |
|
10 |
Closes: https://bugs.gentoo.org/661244 |
11 |
Package-Manager: Portage-2.3.42, Repoman-2.3.9 |
12 |
|
13 |
net-libs/grpc/grpc-1.12.1.ebuild | 160 ------------------------------------ |
14 |
net-libs/grpc/grpc-1.13.0.ebuild | 171 --------------------------------------- |
15 |
2 files changed, 331 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/grpc/grpc-1.12.1.ebuild b/net-libs/grpc/grpc-1.12.1.ebuild |
18 |
deleted file mode 100644 |
19 |
index e57c672f483..00000000000 |
20 |
--- a/net-libs/grpc/grpc-1.12.1.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,160 +0,0 @@ |
23 |
-# Copyright 1999-2018 Gentoo Foundation |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
- |
28 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
29 |
-DISTUTILS_OPTIONAL=1 |
30 |
- |
31 |
-inherit distutils-r1 flag-o-matic toolchain-funcs |
32 |
- |
33 |
-# should match pinned git submodule version of third_party/protobuf |
34 |
-# look it up here https://github.com/grpc/grpc/tree/v"${PV}"/third_party |
35 |
-PROTOBUF_VERSION="3.5.2" |
36 |
- |
37 |
-DESCRIPTION="Modern open source high performance RPC framework" |
38 |
-HOMEPAGE="http://www.grpc.io" |
39 |
-SRC_URI=" |
40 |
- https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
41 |
- tools? ( https://github.com/google/protobuf/archive/v${PROTOBUF_VERSION}.tar.gz -> protobuf-${PROTOBUF_VERSION}.tar.gz ) |
42 |
-" |
43 |
- |
44 |
-LICENSE="Apache-2.0" |
45 |
-SLOT="0" |
46 |
-KEYWORDS="~amd64 ~x86" |
47 |
-IUSE="examples doc python systemtap tools" |
48 |
- |
49 |
-REQUIRED_USE=" |
50 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
51 |
- tools? ( python ) |
52 |
-" |
53 |
- |
54 |
-DEPEND=" |
55 |
- >=dev-libs/openssl-1.0.2:0=[-bindist] |
56 |
- >=dev-libs/protobuf-3.5:= |
57 |
- dev-util/google-perftools |
58 |
- net-dns/c-ares:= |
59 |
- sys-libs/zlib:= |
60 |
- python? ( ${PYTHON_DEPS} |
61 |
- dev-python/coverage[${PYTHON_USEDEP}] |
62 |
- dev-python/cython[${PYTHON_USEDEP}] |
63 |
- >=dev-python/protobuf-python-3.5.1:=[${PYTHON_USEDEP}] |
64 |
- dev-python/six[${PYTHON_USEDEP}] |
65 |
- dev-python/wheel[${PYTHON_USEDEP}] |
66 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
67 |
- virtual/python-futures[${PYTHON_USEDEP}] |
68 |
- doc? ( |
69 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
70 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
71 |
- ) |
72 |
- ) |
73 |
- systemtap? ( dev-util/systemtap ) |
74 |
-" |
75 |
- |
76 |
-RDEPEND="${DEPEND}" |
77 |
- |
78 |
-PATCHES=( |
79 |
- "${FILESDIR}/0001-grpc-1.11.0-Fix-cross-compiling.patch" |
80 |
- "${FILESDIR}/0002-grpc-1.3.0-Fix-unsecure-.pc-files.patch" |
81 |
- "${FILESDIR}/0003-grpc-1.3.0-Don-t-run-ldconfig.patch" |
82 |
- "${FILESDIR}/0004-grpc-1.11.0-fix-cpp-so-version.patch" |
83 |
- "${FILESDIR}/0005-grpc-1.11.0-pkgconfig-libdir.patch" |
84 |
- "${FILESDIR}/0006-grpc-1.12.1-allow-system-openssl.patch" |
85 |
- "${FILESDIR}/0007-grpc-1.12.1-allow-system-zlib.patch" |
86 |
- "${FILESDIR}/0008-grpc-1.12.1-allow-system-cares.patch" |
87 |
- "${FILESDIR}/0009-grpc-1.12.1-gcc8-fixes.patch" |
88 |
-) |
89 |
- |
90 |
-src_prepare() { |
91 |
- sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir" |
92 |
- default |
93 |
- use python && distutils-r1_src_prepare |
94 |
-} |
95 |
- |
96 |
-python_prepare() { |
97 |
- if use tools; then |
98 |
- rm -r third_party/protobuf || die "removing empty protobuf dir failed" |
99 |
- ln -s "${S}"/../protobuf-"${PROTOBUF_VERSION}" third_party/protobuf || die |
100 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
101 |
- # absolute symlinks will fail because out-of-source build |
102 |
- # ./src -> ${S}/src |
103 |
- ln -s ../../../../src ./ || die |
104 |
- # ./third_party -> ${S}/third_party |
105 |
- ln -s ../../../../third_party ./ || die |
106 |
- # ./grpc_root -> ${S} |
107 |
- ln -s ../../../../ ./grpc_root || die |
108 |
- popd >/dev/null || die |
109 |
- fi |
110 |
-} |
111 |
- |
112 |
-src_compile() { |
113 |
- tc-export CC CXX PKG_CONFIG |
114 |
- emake \ |
115 |
- V=1 \ |
116 |
- prefix=/usr \ |
117 |
- INSTALL_LIBDIR="$(get_libdir)" \ |
118 |
- AR="$(tc-getAR)" \ |
119 |
- AROPTS="rcs" \ |
120 |
- CFLAGS="${CFLAGS}" \ |
121 |
- LD="${CC}" \ |
122 |
- LDXX="${CXX}" \ |
123 |
- STRIP=true \ |
124 |
- HOST_CC="$(tc-getBUILD_CC)" \ |
125 |
- HOST_CXX="$(tc-getBUILD_CXX)" \ |
126 |
- HOST_LD="$(tc-getBUILD_CC)" \ |
127 |
- HOST_LDXX="$(tc-getBUILD_CXX)" \ |
128 |
- HOST_AR="$(tc-getBUILD_AR)" \ |
129 |
- HAS_SYSTEMTAP="$(usex systemtap true false)" |
130 |
- |
131 |
- use python && distutils-r1_src_compile |
132 |
-} |
133 |
- |
134 |
-python_compile() { |
135 |
- export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 |
136 |
- export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 |
137 |
- export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 |
138 |
- export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
139 |
- distutils-r1_python_compile |
140 |
- |
141 |
- if use tools; then |
142 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
143 |
- distutils-r1_python_compile |
144 |
- popd >/dev/null || die |
145 |
- fi |
146 |
-} |
147 |
- |
148 |
-python_compile_all() { |
149 |
- if use doc; then |
150 |
- esetup.py doc |
151 |
- mv doc/build doc/html || die |
152 |
- fi |
153 |
-} |
154 |
- |
155 |
-src_install() { |
156 |
- emake \ |
157 |
- prefix="${D}"/usr \ |
158 |
- INSTALL_LIBDIR="$(get_libdir)" \ |
159 |
- STRIP=true \ |
160 |
- install |
161 |
- |
162 |
- if use examples; then |
163 |
- docinto examples |
164 |
- dodoc -r examples/. |
165 |
- docompress -x /usr/share/doc/${PF}/examples |
166 |
- fi |
167 |
- |
168 |
- use doc && local DOCS=( AUTHORS README.md doc/. ) |
169 |
- einstalldocs |
170 |
- |
171 |
- use python && distutils-r1_src_install |
172 |
-} |
173 |
- |
174 |
-python_install() { |
175 |
- distutils-r1_python_install |
176 |
- |
177 |
- if use tools; then |
178 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
179 |
- distutils-r1_python_install |
180 |
- popd >/dev/null || die |
181 |
- fi |
182 |
-} |
183 |
|
184 |
diff --git a/net-libs/grpc/grpc-1.13.0.ebuild b/net-libs/grpc/grpc-1.13.0.ebuild |
185 |
deleted file mode 100644 |
186 |
index 824ec4b1aa0..00000000000 |
187 |
--- a/net-libs/grpc/grpc-1.13.0.ebuild |
188 |
+++ /dev/null |
189 |
@@ -1,171 +0,0 @@ |
190 |
-# Copyright 1999-2018 Gentoo Foundation |
191 |
-# Distributed under the terms of the GNU General Public License v2 |
192 |
- |
193 |
-EAPI=6 |
194 |
- |
195 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
196 |
-DISTUTILS_OPTIONAL=1 |
197 |
- |
198 |
-inherit distutils-r1 flag-o-matic toolchain-funcs |
199 |
- |
200 |
-# should match pinned git submodule version of third_party/protobuf |
201 |
-# look it up here https://github.com/grpc/grpc/tree/v"${PV}"/third_party |
202 |
-# also should ~depend on same version of dev-libs/protobuf below |
203 |
-PROTOBUF_VERSION="3.5.2" |
204 |
- |
205 |
-DESCRIPTION="Modern open source high performance RPC framework" |
206 |
-HOMEPAGE="http://www.grpc.io" |
207 |
-SRC_URI=" |
208 |
- https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
209 |
- tools? ( https://github.com/google/protobuf/archive/v${PROTOBUF_VERSION}.tar.gz -> protobuf-${PROTOBUF_VERSION}.tar.gz ) |
210 |
-" |
211 |
- |
212 |
-LICENSE="Apache-2.0" |
213 |
-SLOT="0" |
214 |
-KEYWORDS="~amd64 ~x86" |
215 |
-IUSE="examples doc python systemtap static-libs tools" |
216 |
- |
217 |
-REQUIRED_USE=" |
218 |
- python? ( ${PYTHON_REQUIRED_USE} ) |
219 |
- tools? ( python ) |
220 |
-" |
221 |
- |
222 |
-RDEPEND=" |
223 |
- >=dev-libs/openssl-1.0.2:0=[-bindist] |
224 |
- >=dev-libs/protobuf-${PROTOBUF_VERSION}:= |
225 |
- dev-util/google-perftools |
226 |
- net-dns/c-ares:= |
227 |
- sys-libs/zlib:= |
228 |
- python? ( ${PYTHON_DEPS} |
229 |
- dev-python/coverage[${PYTHON_USEDEP}] |
230 |
- dev-python/cython[${PYTHON_USEDEP}] |
231 |
- >=dev-python/protobuf-python-3.5.1:=[${PYTHON_USEDEP}] |
232 |
- dev-python/six[${PYTHON_USEDEP}] |
233 |
- dev-python/wheel[${PYTHON_USEDEP}] |
234 |
- virtual/python-enum34[${PYTHON_USEDEP}] |
235 |
- virtual/python-futures[${PYTHON_USEDEP}] |
236 |
- ) |
237 |
- systemtap? ( dev-util/systemtap ) |
238 |
-" |
239 |
- |
240 |
-DEPEND="${RDEPEND} |
241 |
- virtual/pkgconfig |
242 |
- doc? ( |
243 |
- python? ( |
244 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
245 |
- dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
246 |
- ) |
247 |
- ) |
248 |
-" |
249 |
- |
250 |
-PATCHES=( |
251 |
- "${FILESDIR}/0001-grpc-1.13.0-fix-host-ar-handling.patch" |
252 |
- "${FILESDIR}/0002-grpc-1.3.0-Fix-unsecure-.pc-files.patch" |
253 |
- "${FILESDIR}/0003-grpc-1.3.0-Don-t-run-ldconfig.patch" |
254 |
- "${FILESDIR}/0004-grpc-1.11.0-fix-cpp-so-version.patch" |
255 |
- "${FILESDIR}/0005-grpc-1.11.0-pkgconfig-libdir.patch" |
256 |
- "${FILESDIR}/0009-grpc-1.12.1-gcc8-fixes.patch" |
257 |
-) |
258 |
- |
259 |
-src_prepare() { |
260 |
- sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir" |
261 |
- default |
262 |
- use python && distutils-r1_src_prepare |
263 |
-} |
264 |
- |
265 |
-python_prepare() { |
266 |
- if use tools; then |
267 |
- rm -r third_party/protobuf || die "removing empty protobuf dir failed" |
268 |
- ln -s "${S}"/../protobuf-"${PROTOBUF_VERSION}" third_party/protobuf || die |
269 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
270 |
- # absolute symlinks will fail |
271 |
- # ./src -> ${S}/src |
272 |
- ln -s ../../../../src ./ || die |
273 |
- # ./third_party -> ${S}/third_party |
274 |
- ln -s ../../../../third_party ./ || die |
275 |
- # ./grpc_root -> ${S} |
276 |
- ln -s ../../../../ ./grpc_root || die |
277 |
- popd >/dev/null || die |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-src_compile() { |
282 |
- tc-export CC CXX PKG_CONFIG |
283 |
- |
284 |
- emake \ |
285 |
- V=1 \ |
286 |
- prefix=/usr \ |
287 |
- INSTALL_LIBDIR="$(get_libdir)" \ |
288 |
- AR="$(tc-getAR)" \ |
289 |
- AROPTS="rcs" \ |
290 |
- CFLAGS="${CFLAGS}" \ |
291 |
- CXXFLAGS="${CXXFLAGS}" \ |
292 |
- LD="${CC}" \ |
293 |
- LDXX="${CXX}" \ |
294 |
- STRIP=/bin/true \ |
295 |
- HOST_CC="$(tc-getBUILD_CC)" \ |
296 |
- HOST_CXX="$(tc-getBUILD_CXX)" \ |
297 |
- HOST_LD="$(tc-getBUILD_CC)" \ |
298 |
- HOST_LDXX="$(tc-getBUILD_CXX)" \ |
299 |
- HOST_AR="$(tc-getBUILD_AR)" \ |
300 |
- HAS_SYSTEMTAP="$(usex systemtap true false)" |
301 |
- |
302 |
- use python && distutils-r1_src_compile |
303 |
-} |
304 |
- |
305 |
-python_compile() { |
306 |
- export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 |
307 |
- export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 |
308 |
- export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 |
309 |
- export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
310 |
- distutils-r1_python_compile |
311 |
- |
312 |
- if use tools; then |
313 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
314 |
- distutils-r1_python_compile |
315 |
- popd >/dev/null || die |
316 |
- fi |
317 |
-} |
318 |
- |
319 |
-python_compile_all() { |
320 |
- if use doc; then |
321 |
- esetup.py doc |
322 |
- mv doc/build doc/html || die |
323 |
- fi |
324 |
-} |
325 |
- |
326 |
-src_install() { |
327 |
- emake \ |
328 |
- prefix="${D}"/usr \ |
329 |
- INSTALL_LIBDIR="$(get_libdir)" \ |
330 |
- STRIP=/bin/true \ |
331 |
- install |
332 |
- |
333 |
- use static-libs || find "${ED}" -name '*.a' -delete |
334 |
- |
335 |
- if use examples; then |
336 |
- find examples -name '.gitignore' -delete || die |
337 |
- dodoc -r examples |
338 |
- docompress -x /usr/share/doc/${PF}/examples |
339 |
- fi |
340 |
- |
341 |
- if use doc; then |
342 |
- find doc -name '.gitignore' -delete || die |
343 |
- local DOCS=( AUTHORS README.md doc/. ) |
344 |
- fi |
345 |
- |
346 |
- einstalldocs |
347 |
- |
348 |
- use python && distutils-r1_src_install |
349 |
- |
350 |
-} |
351 |
- |
352 |
-python_install() { |
353 |
- distutils-r1_python_install |
354 |
- |
355 |
- if use tools; then |
356 |
- pushd tools/distrib/python/grpcio_tools >/dev/null || die |
357 |
- distutils-r1_python_install |
358 |
- popd >/dev/null || die |
359 |
- fi |
360 |
-} |