mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-libs/grpc: drop old
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
DIST grpc-1.22.1.tar.gz 15083781 BLAKE2B 5f1bc2fc638cfa2f97df9dfba3c927ae0c7871b9e56f8012795000c30f20fa4d5c1bad37d117cf8ea54fb372b8b02702a866c027c6e0a467f276a752ee9d17c6 SHA512 086ceb7a4fc1439bd23a2cab8c90ba2542491d5a9c278a0ff6e1b3ad623cf7725b2a7310bb793d9b36882bd9394d02a3616331ac26c78d822e68b305c2ae27f6
|
||||
DIST grpc-1.23.0.tar.gz 15212436 BLAKE2B 119a62e6573a1c7785934f7752d9bf2fc0f503a268e439ce143d6730994e3fc154ffd558a2fb3776a77f5f36798baac334f50d1c612ae5564c3c2f110df8b42c SHA512 4770651bd73b71735152155327c44d59125442b405157ffea8fb80b6f16406dd388474394e44ef620e2a777018121988a3a7a552a42141650d7cac263ab499a0
|
||||
DIST grpc-1.24.3.tar.gz 15364420 BLAKE2B 7a1262ee931c2578399e7373e25fefb7a4329a2c0f139b17fbd4073406a931730393016455ff3ddee8b686ebb7903a898ca532972f57369c7658c68643b6d715 SHA512 19afa8b1fd64c429317c85d8cf42d01af0ac6aec82508740c176e1fd4f92dea9531ea9812523215ed67466bae93a75e14dc34cd9cce5987a13c0104e0313c69c
|
||||
DIST grpc-1.26-fix-odr-violation.patch.bz2 6320 BLAKE2B d7551a54c7a846cd8545a9cb0204e28f1d94b6a0a28b9093be1337127e76256c29e2ff9739ef1791740371d4b30520305c3c5908216030f4b23488c250248256 SHA512 c020eb40a3a494f8ef4a0ab6efc7a832c844c365d006a1d9512f0451af4ff33a11a185cd0ecd1afa0c546b190efcf8a0fef9e543f8fac35e65da10a2df34cd61
|
||||
DIST grpc-1.26.0.tar.gz 16673794 BLAKE2B f72d1997366e5e6e8b6b554149f90a187cbaea65da0070f4525739db38c053c6b280509f2faf2ec0e283ab9b7d000efda46b90b18143cd5ef8c1ec0881e00d3d SHA512 4f7d067c582d0a9be7b7d4dd1e08acdbe6ff0686dfe92b5db5b7927f779410a4237acfd1c61d9f79eb2d00f86cf93cc7492fa372c1877e57c1aa23e9bb2648bb
|
||||
DIST grpc-1.28.1.tar.gz 6888015 BLAKE2B 92d6f4a655183d34979c668bb7f4187a6670aa8ff5609df7b19fc7cadb57756fdc2322e57ef328623b1d91e63d8891ec0154ccef827c0302c14d986c6d9d179f SHA512 5cc4993470e2df21447d032ddeb65ab4175bb8acad5a06fdd22564068b80a5be255ef0e44d36732642d39dc3eaec02a93d2aaf6e369ad5dc43ff99b5023f357b
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
--- a/Makefile 2018-05-28 17:59:34.631540261 +0800
|
||||
+++ b/Makefile 2018-05-28 18:01:31.266936000 +0800
|
||||
@@ -460,11 +460,11 @@
|
||||
CACHE_MK += HAS_PKG_CONFIG = true,
|
||||
endif
|
||||
|
||||
-CORE_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/lib,,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CORE_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
+CORE_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/$(INSTALL_LIBDIR),,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CORE_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
|
||||
-CPP_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/lib,,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CPP_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
+CPP_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/$(INSTALL_LIBDIR),,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CPP_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
|
||||
-CSHARP_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/lib,,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CSHARP_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
+CSHARP_PC_TEMPLATE = prefix=$(prefix),exec_prefix=\$${prefix},includedir=\$${prefix}/include,libdir=\$${exec_prefix}/$(INSTALL_LIBDIR),,Name: $(PC_NAME),Description: $(PC_DESCRIPTION),Version: $(CSHARP_VERSION),Cflags: -I\$${includedir} $(PC_CFLAGS),Requires.private: $(PC_REQUIRES_PRIVATE),Libs: -L\$${libdir} $(PC_LIB),Libs.private: $(PC_LIBS_PRIVATE)
|
||||
|
||||
ifeq ($(SYSTEM),MINGW32)
|
||||
EXECUTABLE_SUFFIX = .exe
|
||||
@@ -1,78 +0,0 @@
|
||||
From d1d017390b799c59d6fdf7b8afa6136d218bdd61 Mon Sep 17 00:00:00 2001
|
||||
From: Benjamin Peterson <benjamin@dropbox.com>
|
||||
Date: Fri, 3 May 2019 08:11:00 -0700
|
||||
Subject: [PATCH] Rename gettid() functions.
|
||||
|
||||
glibc 2.30 will declare its own gettid; see https://sourceware.org/git/?p=glibc.git;a=commit;h=1d0fc213824eaa2a8f8c4385daaa698ee8fb7c92. Rename the grpc versions to avoid naming conflicts.
|
||||
---
|
||||
src/core/lib/gpr/log_linux.cc | 4 ++--
|
||||
src/core/lib/gpr/log_posix.cc | 4 ++--
|
||||
src/core/lib/iomgr/ev_epollex_linux.cc | 4 ++--
|
||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/src/core/lib/gpr/log_linux.cc b/src/core/lib/gpr/log_linux.cc
|
||||
index 561276f0c20..8b597b4cf2f 100644
|
||||
--- a/src/core/lib/gpr/log_linux.cc
|
||||
+++ b/src/core/lib/gpr/log_linux.cc
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-static long gettid(void) { return syscall(__NR_gettid); }
|
||||
+static long sys_gettid(void) { return syscall(__NR_gettid); }
|
||||
|
||||
void gpr_log(const char* file, int line, gpr_log_severity severity,
|
||||
const char* format, ...) {
|
||||
@@ -70,7 +70,7 @@ void gpr_default_log(gpr_log_func_args* args) {
|
||||
gpr_timespec now = gpr_now(GPR_CLOCK_REALTIME);
|
||||
struct tm tm;
|
||||
static __thread long tid = 0;
|
||||
- if (tid == 0) tid = gettid();
|
||||
+ if (tid == 0) tid = sys_gettid();
|
||||
|
||||
timer = static_cast<time_t>(now.tv_sec);
|
||||
final_slash = strrchr(args->file, '/');
|
||||
diff --git a/src/core/lib/gpr/log_posix.cc b/src/core/lib/gpr/log_posix.cc
|
||||
index b6edc14ab6b..2f7c6ce3760 100644
|
||||
--- a/src/core/lib/gpr/log_posix.cc
|
||||
+++ b/src/core/lib/gpr/log_posix.cc
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
-static intptr_t gettid(void) { return (intptr_t)pthread_self(); }
|
||||
+static intptr_t sys_gettid(void) { return (intptr_t)pthread_self(); }
|
||||
|
||||
void gpr_log(const char* file, int line, gpr_log_severity severity,
|
||||
const char* format, ...) {
|
||||
@@ -86,7 +86,7 @@ void gpr_default_log(gpr_log_func_args* args) {
|
||||
char* prefix;
|
||||
gpr_asprintf(&prefix, "%s%s.%09d %7" PRIdPTR " %s:%d]",
|
||||
gpr_log_severity_string(args->severity), time_buffer,
|
||||
- (int)(now.tv_nsec), gettid(), display_file, args->line);
|
||||
+ (int)(now.tv_nsec), sys_gettid(), display_file, args->line);
|
||||
|
||||
fprintf(stderr, "%-70s %s\n", prefix, args->message);
|
||||
gpr_free(prefix);
|
||||
diff --git a/src/core/lib/iomgr/ev_epollex_linux.cc b/src/core/lib/iomgr/ev_epollex_linux.cc
|
||||
index 08116b3ab53..76f59844312 100644
|
||||
--- a/src/core/lib/iomgr/ev_epollex_linux.cc
|
||||
+++ b/src/core/lib/iomgr/ev_epollex_linux.cc
|
||||
@@ -1102,7 +1102,7 @@ static void end_worker(grpc_pollset* pollset, grpc_pollset_worker* worker,
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
-static long gettid(void) { return syscall(__NR_gettid); }
|
||||
+static long sys_gettid(void) { return syscall(__NR_gettid); }
|
||||
#endif
|
||||
|
||||
/* pollset->mu lock must be held by the caller before calling this.
|
||||
@@ -1122,7 +1122,7 @@ static grpc_error* pollset_work(grpc_pollset* pollset,
|
||||
#define WORKER_PTR (&worker)
|
||||
#endif
|
||||
#ifndef NDEBUG
|
||||
- WORKER_PTR->originator = gettid();
|
||||
+ WORKER_PTR->originator = sys_gettid();
|
||||
#endif
|
||||
if (GRPC_TRACE_FLAG_ENABLED(grpc_polling_trace)) {
|
||||
gpr_log(GPR_INFO,
|
||||
@@ -1,113 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
>=dev-libs/protobuf-3.7.0:=
|
||||
>=net-dns/c-ares-1.15.0:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.21.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.22.0-cxx_arg_list_too_long_forloop.patch" # https://github.com/grpc/grpc/issues/14844
|
||||
"${FILESDIR}/grpc-1.22.1-glibc-2.30-compat.patch" # https://github.com/grpc/grpc/pull/18950
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r third_party/cares || die
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix=/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
AR="$(tc-getAR)"
|
||||
AROPTS="rcs"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LD="${CC}"
|
||||
LDXX="${CXX}"
|
||||
STRIP=/bin/true
|
||||
HOST_AR="$(tc-getBUILD_AR)"
|
||||
HOST_CC="$(tc-getBUILD_CC)"
|
||||
HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
HOST_LD="$(tc-getBUILD_CC)"
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)"
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix="${ED}"/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
STRIP=/bin/true
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,113 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
>=dev-libs/protobuf-3.7.0:=
|
||||
>=net-dns/c-ares-1.15.0:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.21.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.22.0-cxx_arg_list_too_long_forloop.patch" # https://github.com/grpc/grpc/issues/14844
|
||||
"${FILESDIR}/grpc-1.22.1-glibc-2.30-compat.patch" # https://github.com/grpc/grpc/pull/18950
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r third_party/cares || die
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix=/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
AR="$(tc-getAR)"
|
||||
AROPTS="rcs"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LD="${CC}"
|
||||
LDXX="${CXX}"
|
||||
STRIP=/bin/true
|
||||
HOST_AR="$(tc-getBUILD_AR)"
|
||||
HOST_CC="$(tc-getBUILD_CC)"
|
||||
HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
HOST_LD="$(tc-getBUILD_CC)"
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)"
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix="${ED}"/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
STRIP=/bin/true
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PV="${PV//_pre/-pre}"
|
||||
|
||||
DESCRIPTION="Modern open source high performance RPC framework"
|
||||
HOMEPAGE="https://www.grpc.io"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86"
|
||||
IUSE="examples doc perftools systemtap static-libs"
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/openssl-1.0.2:0=[-bindist]
|
||||
>=dev-libs/protobuf-3.7.0:=
|
||||
>=net-dns/c-ares-1.15.0:=
|
||||
sys-libs/zlib:=
|
||||
perftools? ( dev-util/google-perftools:= )
|
||||
systemtap? ( dev-util/systemtap )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
# requires network
|
||||
RESTRICT="test"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/grpc-1.21.0-fix-host-ar-handling.patch"
|
||||
"${FILESDIR}/grpc-1.3.0-Don-t-run-ldconfig.patch"
|
||||
"${FILESDIR}/grpc-1.11.0-pkgconfig-libdir.patch"
|
||||
"${FILESDIR}/grpc-1.22.0-cxx_arg_list_too_long_forloop.patch" # https://github.com/grpc/grpc/issues/14844
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
src_prepare() {
|
||||
rm -r third_party/cares || die
|
||||
sed -i 's:-Werror::g' Makefile || die
|
||||
sed -i 's@$(prefix)/lib@$(prefix)/$(INSTALL_LIBDIR)@g' Makefile || die "fix libdir"
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC CXX PKG_CONFIG
|
||||
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix=/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
AR="$(tc-getAR)"
|
||||
AROPTS="rcs"
|
||||
CFLAGS="${CFLAGS}"
|
||||
CXXFLAGS="${CXXFLAGS}"
|
||||
LD="${CC}"
|
||||
LDXX="${CXX}"
|
||||
STRIP=/bin/true
|
||||
HOST_AR="$(tc-getBUILD_AR)"
|
||||
HOST_CC="$(tc-getBUILD_CC)"
|
||||
HOST_CXX="$(tc-getBUILD_CXX)"
|
||||
HOST_LD="$(tc-getBUILD_CC)"
|
||||
HOST_LDXX="$(tc-getBUILD_CXX)"
|
||||
HAS_SYSTEM_PERFTOOLS="$(usex perftools true false)"
|
||||
HAS_SYSTEMTAP="$(usex systemtap true false)"
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
V=1
|
||||
prefix="${ED}"/usr
|
||||
INSTALL_LIBDIR="$(get_libdir)"
|
||||
STRIP=/bin/true
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" install
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use examples; then
|
||||
find examples -name '.gitignore' -delete || die
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
local DOCS=( AUTHORS CONCEPTS.md README.md TROUBLESHOOTING.md doc/. )
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ver_test "${v}" -lt 1.16.0; then
|
||||
ewarn "python bindings and tools moved to separate independent packages"
|
||||
ewarn "check dev-python/grpcio and dev-python/grpcio-tools"
|
||||
fi
|
||||
done
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user