Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/grpc/
Date: Sat, 26 Oct 2019 00:12:01
Message-Id: 1572048708.5532f2df1fffead332b01c463d03e4cede6fc5a6.gyakovlev@gentoo
1 commit: 5532f2df1fffead332b01c463d03e4cede6fc5a6
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 26 00:04:17 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 26 00:11:48 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5532f2df
7
8 net-libs/grpc: bump to 1.24.3
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
12
13 net-libs/grpc/Manifest | 1 +
14 net-libs/grpc/grpc-1.24.3.ebuild | 112 +++++++++++++++++++++++++++++++++++++++
15 2 files changed, 113 insertions(+)
16
17 diff --git a/net-libs/grpc/Manifest b/net-libs/grpc/Manifest
18 index dc09d8a746a..1254f6798c1 100644
19 --- a/net-libs/grpc/Manifest
20 +++ b/net-libs/grpc/Manifest
21 @@ -6,3 +6,4 @@ DIST grpc-1.20.1.tar.gz 14930355 BLAKE2B 5b1bf2250d2b052498cfad9fc96134fd9b0065c
22 DIST grpc-1.21.1.tar.gz 15043553 BLAKE2B bed23af6606a69eb02a033d5dd6d92e3e080cc68ddae3c700872b8036cab594fd79c2396eb4ac84df2c5ea9eaf5ec0401d820667a7de0e9e2b376c0df4d4e9c5 SHA512 b9ea81a97416d9c1ef4d49e5f222f309b00d383f643f3bf342b6ad97f88e08e212e19db75e4a74fc5c23799dbe76dd0a9d6d4c9310e8cb1e007622a78d7a7114
23 DIST grpc-1.22.1.tar.gz 15083781 BLAKE2B 5f1bc2fc638cfa2f97df9dfba3c927ae0c7871b9e56f8012795000c30f20fa4d5c1bad37d117cf8ea54fb372b8b02702a866c027c6e0a467f276a752ee9d17c6 SHA512 086ceb7a4fc1439bd23a2cab8c90ba2542491d5a9c278a0ff6e1b3ad623cf7725b2a7310bb793d9b36882bd9394d02a3616331ac26c78d822e68b305c2ae27f6
24 DIST grpc-1.23.0.tar.gz 15212436 BLAKE2B 119a62e6573a1c7785934f7752d9bf2fc0f503a268e439ce143d6730994e3fc154ffd558a2fb3776a77f5f36798baac334f50d1c612ae5564c3c2f110df8b42c SHA512 4770651bd73b71735152155327c44d59125442b405157ffea8fb80b6f16406dd388474394e44ef620e2a777018121988a3a7a552a42141650d7cac263ab499a0
25 +DIST grpc-1.24.3.tar.gz 15364420 BLAKE2B 7a1262ee931c2578399e7373e25fefb7a4329a2c0f139b17fbd4073406a931730393016455ff3ddee8b686ebb7903a898ca532972f57369c7658c68643b6d715 SHA512 19afa8b1fd64c429317c85d8cf42d01af0ac6aec82508740c176e1fd4f92dea9531ea9812523215ed67466bae93a75e14dc34cd9cce5987a13c0104e0313c69c
26
27 diff --git a/net-libs/grpc/grpc-1.24.3.ebuild b/net-libs/grpc/grpc-1.24.3.ebuild
28 new file mode 100644
29 index 00000000000..ee95dff335a
30 --- /dev/null
31 +++ b/net-libs/grpc/grpc-1.24.3.ebuild
32 @@ -0,0 +1,112 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic toolchain-funcs
39 +
40 +MY_PV="${PV//_pre/-pre}"
41 +
42 +DESCRIPTION="Modern open source high performance RPC framework"
43 +HOMEPAGE="https://www.grpc.io"
44 +SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc64 ~x86"
49 +IUSE="examples doc perftools systemtap static-libs"
50 +
51 +DEPEND="
52 + >=dev-libs/openssl-1.0.2:0=[-bindist]
53 + >=dev-libs/protobuf-3.7.0:=
54 + >=net-dns/c-ares-1.15.0:=
55 + sys-libs/zlib:=
56 + perftools? ( dev-util/google-perftools:= )
57 + systemtap? ( dev-util/systemtap )
58 +"
59 +
60 +RDEPEND="${DEPEND}"
61 +BDEPEND="virtual/pkgconfig"
62 +
63 +# requires network
64 +RESTRICT="test"
65 +
66 +PATCHES=(
67 + "${FILESDIR}/grpc-1.21.0-fix-host-ar-handling.patch"
68 + "${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
69 + "${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
70 + "${FILESDIR}/grpc-1.22.0-cxx_arg_list_too_long_forloop.patch" # https://github.com/grpc/grpc/issues/14844
71 +)
72 +
73 +S="${WORKDIR}/${PN}-${MY_PV}"
74 +
75 +src_prepare() {
76 + rm -r third_party/cares || die
77 + sed -i 's:-Werror::g' Makefile || die
78 + sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
79 +
80 + default
81 +}
82 +
83 +src_compile() {
84 + tc-export CC CXX PKG_CONFIG
85 +
86 + local myemakeargs=(
87 + V=1
88 + prefix=/usr
89 + INSTALL_LIBDIR="$(get_libdir)"
90 + AR="$(tc-getAR)"
91 + AROPTS="rcs"
92 + CFLAGS="${CFLAGS}"
93 + CXXFLAGS="${CXXFLAGS}"
94 + LD="${CC}"
95 + LDXX="${CXX}"
96 + STRIP=/bin/true
97 + HOST_AR="$(tc-getBUILD_AR)"
98 + HOST_CC="$(tc-getBUILD_CC)"
99 + HOST_CXX="$(tc-getBUILD_CXX)"
100 + HOST_LD="$(tc-getBUILD_CC)"
101 + HOST_LDXX="$(tc-getBUILD_CXX)"
102 + HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
103 + HAS_SYSTEMTAP="$(usex systemtap true false)"
104 + )
105 +
106 + emake "${myemakeargs[@]}"
107 +}
108 +
109 +src_install() {
110 + local myemakeargs=(
111 + V=1
112 + prefix="${ED}"/usr
113 + INSTALL_LIBDIR="$(get_libdir)"
114 + STRIP=/bin/true
115 + )
116 +
117 + emake "${myemakeargs[@]}" install
118 +
119 + use static-libs || find "${ED}" -name '*.a' -delete
120 +
121 + if use examples; then
122 + find examples -name '.gitignore' -delete || die
123 + dodoc -r examples
124 + docompress -x /usr/share/doc/${PF}/examples
125 + fi
126 +
127 + if use doc; then
128 + find doc -name '.gitignore' -delete || die
129 + local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
130 + fi
131 +
132 + einstalldocs
133 +}
134 +
135 +pkg_postinst() {
136 + local v
137 + for v in ${REPLACING_VERSIONS}; do
138 + if ver_test "${v}" -lt 1.16.0; then
139 + ewarn "python bindings and tools moved to separate independent packages"
140 + ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
141 + fi
142 + done
143 +
144 +}