Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/grpc/
Date: Wed, 30 May 2018 13:24:06
Message-Id: 1527686590.db5628f73e5070d4fc70123e26d4a9631ccc1567.perfinion@gentoo
1 commit: db5628f73e5070d4fc70123e26d4a9631ccc1567
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 30 12:45:43 2018 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Wed May 30 13:23:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db5628f7
7
8 net-libs/grpc: bump to 1.12.0
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-libs/grpc/Manifest | 1 +
13 net-libs/grpc/grpc-1.12.0.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/net-libs/grpc/Manifest b/net-libs/grpc/Manifest
17 index 4979a85eff1..0ca4bc38aba 100644
18 --- a/net-libs/grpc/Manifest
19 +++ b/net-libs/grpc/Manifest
20 @@ -1 +1,2 @@
21 DIST grpc-1.11.0.tar.gz 13431990 BLAKE2B d7aabd86fdaba8f8fc6fa17b411b496bbd51ef0a759d4bd77c0391e472c88f4252270ceddc19fb59a2b725d612236e1aef959f4b313551cb38204c51d1ca216b SHA512 3127cf0e66cd0712d905e6008adf6f80d787ad97eae2fba38fa3f4d343849a3dc3ca8f2ccbc82020e812fdb272e9577584c298a5b623fbdcac40c1efd7877855
22 +DIST grpc-1.12.0.tar.gz 13692310 BLAKE2B 86b9063416140453718c51df4f238bb3d5ac8549ece065c95d3c461c069358badec5a9a77aef694cd11a09f53e060f9ea51f3b40d9a2424837605c4899a21c57 SHA512 68a8c261ea570790974769d6c0ca8138cf4242b79e9ff74a11b10d35a27f98ff24c03f3d05932ac46811c0ba7d1a094388ae8dbeb495fc8e723ad74695994d49
23
24 diff --git a/net-libs/grpc/grpc-1.12.0.ebuild b/net-libs/grpc/grpc-1.12.0.ebuild
25 new file mode 100644
26 index 00000000000..a232297d5cf
27 --- /dev/null
28 +++ b/net-libs/grpc/grpc-1.12.0.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
36 +inherit python-r1 toolchain-funcs multilib flag-o-matic
37 +
38 +DESCRIPTION="Modern open source high performance RPC framework"
39 +HOMEPAGE="http://www.grpc.io"
40 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="Apache-2.0"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE=""
46 +
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +RDEPEND="
50 + >=dev-libs/openssl-1.0.2:0=[-bindist]
51 + >=dev-libs/protobuf-3:=
52 + net-dns/c-ares:=
53 + sys-libs/zlib:="
54 +
55 +DEPEND="${RDEPEND}"
56 +
57 +PATCHES=(
58 + "${FILESDIR}/0001-grpc-1.11.0-Fix-cross-compiling.patch"
59 + "${FILESDIR}/0002-grpc-1.3.0-Fix-unsecure-.pc-files.patch"
60 + "${FILESDIR}/0003-grpc-1.3.0-Don-t-run-ldconfig.patch"
61 + "${FILESDIR}/0004-grpc-1.11.0-fix-cpp-so-version.patch"
62 + "${FILESDIR}/0005-grpc-1.11.0-pkgconfig-libdir.patch"
63 +)
64 +
65 +src_prepare() {
66 + sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
67 + default
68 +}
69 +
70 +src_compile() {
71 + tc-export CC CXX PKG_CONFIG
72 + emake \
73 + V=1 \
74 + prefix=/usr \
75 + INSTALL_LIBDIR="$(get_libdir)" \
76 + AR="$(tc-getAR)" \
77 + AROPTS="rcs" \
78 + CFLAGS="${CFLAGS}" \
79 + LD="${CC}" \
80 + LDXX="${CXX}" \
81 + STRIP=true \
82 + HOST_CC="$(tc-getBUILD_CC)" \
83 + HOST_CXX="$(tc-getBUILD_CXX)" \
84 + HOST_LD="$(tc-getBUILD_CC)" \
85 + HOST_LDXX="$(tc-getBUILD_CXX)" \
86 + HOST_AR="$(tc-getBUILD_AR)"
87 +}
88 +
89 +src_install() {
90 + emake \
91 + prefix="${D}"/usr \
92 + INSTALL_LIBDIR="$(get_libdir)" \
93 + STRIP=true \
94 + install
95 +}