diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-04-02 13:54:40 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-04-02 13:54:40 +0000 |
| commit | 62a4a5b8d15dc3aed5c05aba4479b77c7b341982 (patch) | |
| tree | 83978e512387bd8b4e3e573bdb6f8c6c4df95710 /dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild | |
| parent | 19eea976009a405d14fab992129e0915269e26dc (diff) | |
| download | srcux-62a4a5b8d15dc3aed5c05aba4479b77c7b341982.tar.gz srcux-62a4a5b8d15dc3aed5c05aba4479b77c7b341982.tar.xz srcux-62a4a5b8d15dc3aed5c05aba4479b77c7b341982.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild')
| -rw-r--r-- | dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild b/dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild index b8b53d810cbc..f03e7bae0ca4 100644 --- a/dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild +++ b/dev-cpp/abseil-cpp/abseil-cpp-20200923.2.ebuild @@ -1,11 +1,11 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2020-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -inherit cmake python-any-r1 +inherit cmake python-any-r1 toolchain-funcs # yes, it needs SOURCE, not just installed one GTEST_COMMIT="aee0f9d9b5b87796ee8a0ab26b7587ec30e8858e" @@ -22,7 +22,7 @@ LICENSE=" " SLOT="0" KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="cxx17 test" +IUSE="+cxx17 test" DEPEND="" RDEPEND="${DEPEND}" @@ -34,6 +34,10 @@ BDEPEND=" RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}/${PN}-20200923-arm_no_crypto.patch" +) + src_prepare() { cmake_src_prepare @@ -46,6 +50,7 @@ src_prepare() { absl/copts/copts.py || die # now generate cmake files + python_fix_shebang absl/copts/generate_copts.py absl/copts/generate_copts.py || die sed -i 's/-Werror//g' \ @@ -53,6 +58,12 @@ src_prepare() { } src_configure() { + if use arm || use arm64; then + if [[ $($(tc-getCXX) ${CXXFLAGS} -E -P - <<<$'#if defined(__ARM_FEATURE_CRYPTO)\nHAVE_ARM_FEATURE_CRYPTO\n#endif') != *HAVE_ARM_FEATURE_CRYPTO* ]]; then + append-cxxflags -DABSL_ARCH_ARM_NO_CRYPTO + fi + fi + local mycmakeargs=( -DABSL_ENABLE_INSTALL=TRUE -DABSL_LOCAL_GOOGLETEST_DIR="${WORKDIR}/googletest-${GTEST_COMMIT}" |
