diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-23 07:07:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-23 07:07:57 +0000 |
commit | bed152ba1fc2f1316eaefb5c3d24d48195560f76 (patch) | |
tree | 0564fbaf0c7ff23390031d68b741e89a40071333 /dev-cpp/gtest | |
parent | 57c2e006d0af9ab77ced676461d7100cade4a716 (diff) |
gentoo auto-resync : 23:11:2022 - 07:07:57
Diffstat (limited to 'dev-cpp/gtest')
-rw-r--r-- | dev-cpp/gtest/Manifest | 4 | ||||
-rw-r--r-- | dev-cpp/gtest/gtest-1.12.1.ebuild | 78 | ||||
-rw-r--r-- | dev-cpp/gtest/gtest-9999.ebuild | 13 |
3 files changed, 88 insertions, 7 deletions
diff --git a/dev-cpp/gtest/Manifest b/dev-cpp/gtest/Manifest index 55b6a552149f..3d4c54f0f752 100644 --- a/dev-cpp/gtest/Manifest +++ b/dev-cpp/gtest/Manifest @@ -1,5 +1,7 @@ AUX gtest-1.10.0_p20200702-increase-clone-stack-size.patch 606 BLAKE2B dc5282aca513bcb82e7ed90e432ca1ee758953955a30f1dd17bc0c2f56a46e7ef846c209186e561dfa6d7e7f7541ee03db5b88dcacfac649e0ff2a3f41bd7870 SHA512 01ab820bf5a100905f24be2a9f866b98e9e6a90686ecd0b93a85d42d9290bc6cb74e6fd218e78a48c6dcc69d410fd2dc9ccf7aa50903fe86e7886af1b97c25fa DIST gtest-1.11.0.tar.gz 886330 BLAKE2B d11fdd485f292d96508cbc27a9a444ab69b86571cc594298fd3f0e6d4bd8d6ec20dea848fe11be165d34054b2251ad377f0930f852914feaa1416ff156986a9c SHA512 6fcc7827e4c4d95e3ae643dd65e6c4fc0e3d04e1778b84f6e06e390410fe3d18026c131d828d949d2f20dde6327d30ecee24dcd3ef919e21c91e010d149f3a28 +DIST gtest-1.12.1.tar.gz 854944 BLAKE2B 7b121fb95bb19efec1387a83da2201a139197225f79f7649ceac04695ff06fc4148319ae928d79ced413a9cfd42e68b56bfda1ee6bfdbf07fdd22795e9974388 SHA512 a9104dc6c53747e36e7dd7bb93dfce51a558bd31b487a9ef08def095518e1296da140e0db263e0644d9055dbd903c0cb69380cb2322941dbfb04780ef247df9c EBUILD gtest-1.11.0.ebuild 1878 BLAKE2B fef10d5437164ec898c02b112314a4076d68d82d8da135cc5765cf343234d67e5ccd9b0dc196d2712fa65eaa524bd90dd281ad62eace6e5cb25e7461a044d04e SHA512 742297e8acdae354dff8e3512bb494f41697aeeb430232a5d75e3f29c74bdec1a5b3dcf491ca7861d3b87d5b8b9b2a3e8f0e86aec7bb678bbbda90603d3e8b43 -EBUILD gtest-9999.ebuild 1879 BLAKE2B 4e4836a319d1139c36f4d4334da8d920051f6b6344adef6f43379e657ba2f3080b7a3ae0b722a55b5ba0c7f7c911afc7d2a7be0f0836eff0b602728384063692 SHA512 9faec51ec2c529459ff9f881336ebb10d9ed189024ac947742bd8d768975d2e56c9f6165cfa0c0b0e19356c93a6a6a4969dd4a94910d73b484d8714dfb62c76a +EBUILD gtest-1.12.1.ebuild 1938 BLAKE2B cbce4d27237c80e7905588a16385c0021aab73712f63cf2e17eb33710701a993efac2f395c3c32f04bc456c60adf5ee67bda99d99963dd5158e5606c72607131 SHA512 daf44c31a09131f5de48b10282445ebfdcde4edc61ba17c6553055858f152463df2048d31aba77293cbeab350b53ec0395fb375013a7c23d40ed589969ca718d +EBUILD gtest-9999.ebuild 1931 BLAKE2B 2555060831806fdbeb0e9608e90b2931a9cb2b05bd494ab253eb9b112393a752ea69cd993f09ba658a3207e399e25a794419baa5d8426842bfeaafdef60563a5 SHA512 50356d4a5dd64db98fb0973390bed38764582e484ab4aad32acc962dfdd3fa250414af8ee2f4ed9ea6205b0361925087af03111e4e04ca261e911860a3afe26a MISC metadata.xml 553 BLAKE2B a6d63b3f65e8cc9bf95fb0197c48f6adcca359f118797b0bb6c624d09dd586efe066c990e6cb709d42f8cbf32f67feeccf74b9662d13ddfd57f6b13f199585d3 SHA512 e1edf26c4cf978203c3c6e3fda887923dbf76101860dc8e6a81a7218f88fae0f28d4b78ce6cf34b5d3a61c550e1042d5fb3d3530f88b5277a5b46c8943dc0677 diff --git a/dev-cpp/gtest/gtest-1.12.1.ebuild b/dev-cpp/gtest/gtest-1.12.1.ebuild new file mode 100644 index 000000000000..68ce123507cb --- /dev/null +++ b/dev-cpp/gtest/gtest-1.12.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Python is required for tests and some build tasks. +PYTHON_COMPAT=( python3_{8..11} ) + +inherit cmake-multilib python-any-r1 + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/google/googletest" +else + if [[ -z ${GOOGLETEST_COMMIT} ]]; then + SRC_URI="https://github.com/google/googletest/archive/refs/tags/release-${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/googletest-release-${PV} + else + SRC_URI="https://github.com/google/googletest/archive/${GOOGLETEST_COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/googletest-${GOOGLETEST_COMMIT} + fi + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Google C++ Testing Framework" +HOMEPAGE="https://github.com/google/googletest" + +LICENSE="BSD" +SLOT="0" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( ${PYTHON_DEPS} )" + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + sed -i -e '/set(cxx_base_flags /s:-Werror::' \ + googletest/cmake/internal_utils.cmake || die "sed failed!" +} + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_GMOCK=ON + -DINSTALL_GTEST=ON + + # tests + -Dgmock_build_tests=$(usex test) + -Dgtest_build_tests=$(usex test) + -DPYTHON_EXECUTABLE="${PYTHON}" + ) + cmake_src_configure +} + +multilib_src_test() { + # Exclude tests that fail with FEATURES="usersandbox" + cmake_src_test -E "googletest-(death-test|port)-test" +} + +multilib_src_install_all() { + einstalldocs + + newdoc googletest/README.md README.googletest.md + newdoc googlemock/README.md README.googlemock.md + + use doc && dodoc -r docs/. + + if use examples; then + docinto examples + dodoc googletest/samples/*.{cc,h} + fi +} diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild index 06d6fbc8dd51..0895416d2312 100644 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ b/dev-cpp/gtest/gtest-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 # Python is required for tests and some build tasks. -PYTHON_COMPAT=( python3_{8..10} ) +PYTHON_COMPAT=( python3_{8..11} ) inherit cmake-multilib python-any-r1 @@ -21,7 +21,7 @@ else -> ${P}.tar.gz" S="${WORKDIR}"/googletest-${GOOGLETEST_COMMIT} fi - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" fi DESCRIPTION="Google C++ Testing Framework" @@ -34,10 +34,6 @@ RESTRICT="!test? ( test )" BDEPEND="test? ( ${PYTHON_DEPS} )" -PATCHES=( - "${FILESDIR}"/${PN}-1.10.0_p20200702-increase-clone-stack-size.patch -) - pkg_setup() { use test && python-any-r1_pkg_setup } @@ -62,6 +58,11 @@ multilib_src_configure() { cmake_src_configure } +multilib_src_test() { + # Exclude tests that fail with FEATURES="usersandbox" + cmake_src_test -E "googletest-death-test-test" +} + multilib_src_install_all() { einstalldocs |