Diff gtest-1.13.0 with a gtest-1.14.0
/usr/portage/dev-cpp/gtest/gtest-1.14.0.ebuild 2023-10-09 14:52:29.304368345 +0300 | ||
---|---|---|
4 | 4 |
EAPI=8 |
5 | 5 | |
6 | 6 |
# Python is required for tests and some build tasks. |
7 |
PYTHON_COMPAT=( python3_{9..11} ) |
|
7 |
PYTHON_COMPAT=( python3_{10..12} ) |
|
8 | 8 | |
9 | 9 |
inherit cmake-multilib python-any-r1 |
10 | 10 | |
... | ... | |
21 | 21 |
-> ${P}.tar.gz" |
22 | 22 |
S="${WORKDIR}"/googletest-${GOOGLETEST_COMMIT} |
23 | 23 |
fi |
24 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
|
24 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
|
25 | 25 |
fi |
26 | 26 | |
27 | 27 |
DESCRIPTION="Google C++ Testing Framework" |
... | ... | |
38 | 38 |
use test && python-any-r1_pkg_setup |
39 | 39 |
} |
40 | 40 | |
41 |
src_prepare() { |
|
42 |
cmake_src_prepare |
|
43 | ||
44 |
sed -i -e '/set(cxx_base_flags /s:-Werror::' \ |
|
45 |
googletest/cmake/internal_utils.cmake || die "sed failed!" |
|
46 |
} |
|
47 | ||
48 | 41 |
multilib_src_configure() { |
49 | 42 |
local mycmakeargs=( |
50 | 43 |
-DBUILD_GMOCK=ON |
... | ... | |
53 | 46 |
# tests |
54 | 47 |
-Dgmock_build_tests=$(usex test) |
55 | 48 |
-Dgtest_build_tests=$(usex test) |
56 |
-DPYTHON_EXECUTABLE="${PYTHON}" |
|
57 | 49 |
) |
50 |
use test && mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) |
|
51 | ||
58 | 52 |
cmake_src_configure |
59 | 53 |
} |
60 | 54 |