dev-cpp/abseil-cpp: add multilib support

Needed by protobuf.

Closes: https://bugs.gentoo.org/908372
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Stephan Hartmann
2023-08-21 18:30:08 +01:00
committed by Sam James
parent a5c74e0a36
commit 99e8c24380
2 changed files with 5 additions and 4 deletions
@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit cmake python-any-r1
inherit cmake-multilib python-any-r1
# yes, it needs SOURCE, not just installed one
GTEST_COMMIT="v1.13.0"
@@ -56,7 +56,7 @@ src_prepare() {
fi
}
src_configure() {
multilib_src_configure() {
local mycmakeargs=(
-DCMAKE_CXX_STANDARD=17
-DABSL_ENABLE_INSTALL=TRUE
@@ -65,5 +65,6 @@ src_configure() {
-DABSL_BUILD_TESTING=$(usex test ON OFF)
$(usex test -DBUILD_TESTING=ON '') #intentional usex, it used both variables for tests.
)
cmake_src_configure
}
@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake python-any-r1
inherit cmake-multilib python-any-r1
DESCRIPTION="Abseil Common Libraries (C++), LTS Branch"
HOMEPAGE="https://abseil.io/"
@@ -45,7 +45,7 @@ src_prepare() {
absl/copts/generate_copts.py || die
}
src_configure() {
multilib_src_configure() {
local mycmakeargs=(
# We use -std=c++14 here so that abseil-cpp's string_view is used
# See the discussion in https://github.com/gentoo/gentoo/pull/32281.