mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user