Lines 1-11
Link Here
|
1 |
# Copyright 2020 Gentoo Authors |
1 |
# Copyright 2020-2021 Gentoo Authors |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
3 |
|
4 |
EAPI=7 |
4 |
EAPI=7 |
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
6 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
7 |
|
7 |
|
8 |
inherit cmake python-any-r1 |
8 |
inherit cmake python-any-r1 toolchain-funcs |
9 |
|
9 |
|
10 |
# yes, it needs SOURCE, not just installed one |
10 |
# yes, it needs SOURCE, not just installed one |
11 |
GTEST_COMMIT="aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e" |
11 |
GTEST_COMMIT="aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e" |
Lines 34-39
BDEPEND="
Link Here
|
34 |
|
34 |
|
35 |
RESTRICT="!test? ( test )" |
35 |
RESTRICT="!test? ( test )" |
36 |
|
36 |
|
|
|
37 |
PATCHES=( |
38 |
"${FILESDIR}/${PN}-20200923-arm_no_crypto.patch" |
39 |
) |
40 |
|
37 |
src_prepare() { |
41 |
src_prepare() { |
38 |
cmake_src_prepare |
42 |
cmake_src_prepare |
39 |
|
43 |
|
Lines 53-58
src_prepare() {
Link Here
|
53 |
} |
57 |
} |
54 |
|
58 |
|
55 |
src_configure() { |
59 |
src_configure() { |
|
|
60 |
if use arm || use arm64; then |
61 |
if [[ $($(tc-getCXX) ${CXXFLAGS} -E -P - <<<$'#if defined(__ARM_FEATURE_CRYPTO)\nHAVE_ARM_FEATURE_CRYPTO\n#endif') != *HAVE_ARM_FEATURE_CRYPTO* ]]; then |
62 |
append-cxxflags -DABSL_ARCH_ARM_NO_CRYPTO |
63 |
fi |
64 |
fi |
65 |
|
56 |
local mycmakeargs=( |
66 |
local mycmakeargs=( |
57 |
-DABSL_ENABLE_INSTALL=TRUE |
67 |
-DABSL_ENABLE_INSTALL=TRUE |
58 |
-DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}" |
68 |
-DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}" |