diff options
Diffstat (limited to 'dev-cpp/gtest')
| -rw-r--r-- | dev-cpp/gtest/Manifest | 2 | ||||
| -rw-r--r-- | dev-cpp/gtest/files/gtest-1.15.2-fix-gtest_help_test.patch | 17 | ||||
| -rw-r--r-- | dev-cpp/gtest/files/gtest-find-re2-with-pkgconfig.patch | 32 | ||||
| -rw-r--r-- | dev-cpp/gtest/gtest-1.14.0-r2.ebuild | 81 | ||||
| -rw-r--r-- | dev-cpp/gtest/gtest-1.17.0.ebuild | 89 | ||||
| -rw-r--r-- | dev-cpp/gtest/gtest-9999.ebuild | 89 | ||||
| -rw-r--r-- | dev-cpp/gtest/metadata.xml | 21 |
7 files changed, 0 insertions, 331 deletions
diff --git a/dev-cpp/gtest/Manifest b/dev-cpp/gtest/Manifest deleted file mode 100644 index aeab057008e3..000000000000 --- a/dev-cpp/gtest/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST gtest-1.14.0.tar.gz 867764 BLAKE2B c457f55ac572b9fb1553eee3df7eeeaf1e7dd2c3d747dd5e90dd279038fa5c71bb7b7d9ba1cf7e6143898b2a1d24d100584bd2a48ded41a426870c4825eec1b2 SHA512 765c326ccc1b87a01027385e69238266e356361cd4ee3e18e3c9d137a5d11fa5d657c164d02dd1be8fe693c8e10f2b580588dbfa57d27f070e2750f50d3e662c -DIST gtest-1.17.0.tar.gz 885595 BLAKE2B 194df0cbe44905b9748c3df75ce3e91f0b11d766c845a11a9b86bb65249d21448b6eac1c2ea9fc3c189105f173d2330af5d0622b051f712dbf661ba5917bc96b SHA512 0f57e9ef06925e5b7722df1eb92ef5850e8dce79220ea16a8aaff586a71c0b01460ef1713649ee24ffedb2e6ad5a51e9198c5a5ae1b2789e43feb1f494e7d45c diff --git a/dev-cpp/gtest/files/gtest-1.15.2-fix-gtest_help_test.patch b/dev-cpp/gtest/files/gtest-1.15.2-fix-gtest_help_test.patch deleted file mode 100644 index 1ba087a53e39..000000000000 --- a/dev-cpp/gtest/files/gtest-1.15.2-fix-gtest_help_test.patch +++ /dev/null @@ -1,17 +0,0 @@ -Similar to the bazel build, gtest is supposed to pass --has_absl_flags to -gtest_help_test if building with abseil support but neglects to. - ---- a/googletest/CMakeLists.txt -+++ b/googletest/CMakeLists.txt -@@ -293,7 +293,11 @@ - py_test(googletest-filter-unittest) - - cxx_executable(gtest_help_test_ test gtest_main) -+ if(NOT GTEST_HAS_ABSL) - py_test(gtest_help_test) -+ else() -+ py_test(gtest_help_test --has_absl_flags) -+ endif() - - cxx_executable(googletest-list-tests-unittest_ test gtest) - py_test(googletest-list-tests-unittest) diff --git a/dev-cpp/gtest/files/gtest-find-re2-with-pkgconfig.patch b/dev-cpp/gtest/files/gtest-find-re2-with-pkgconfig.patch deleted file mode 100644 index 3a78ae15cac3..000000000000 --- a/dev-cpp/gtest/files/gtest-find-re2-with-pkgconfig.patch +++ /dev/null @@ -1,32 +0,0 @@ -dev-libs/re2 is built with a Makefile which doesn't install any cmake modules. -For now, use pkgconfig. - -Bug: https://bugs.gentoo.org/940734 -Signed-off-by: Peter Levine <plevine457@gmail.com> - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -25,7 +25,9 @@ - find_package(absl REQUIRED) - endif() - if(NOT TARGET re2::re2) -- find_package(re2 REQUIRED) -+ find_package(PkgConfig REQUIRED) -+ pkg_check_modules(re2 REQUIRED IMPORTED_TARGET re2) -+ add_library(re2::re2 ALIAS PkgConfig::re2) - endif() - endif() - ---- a/googletest/cmake/Config.cmake.in -+++ b/googletest/cmake/Config.cmake.in -@@ -6,7 +6,9 @@ - endif() - if (@GTEST_HAS_ABSL@) - find_dependency(absl) -- find_dependency(re2) -+ find_package(PkgConfig) -+ pkg_check_modules(re2 IMPORTED_TARGET re2) -+ add_library(re2::re2 ALIAS PkgConfig::re2) - endif() - - include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake") diff --git a/dev-cpp/gtest/gtest-1.14.0-r2.ebuild b/dev-cpp/gtest/gtest-1.14.0-r2.ebuild deleted file mode 100644 index 5aa9352e307e..000000000000 --- a/dev-cpp/gtest/gtest-1.14.0-r2.ebuild +++ /dev/null @@ -1,81 +0,0 @@ -# Copyright 1999-2025 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_{13..14} ) - -inherit cmake-multilib flag-o-matic python-any-r1 toolchain-funcs - -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/v${PV}.tar.gz - -> ${P}.tar.gz" - S="${WORKDIR}"/googletest-${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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -fi - -DESCRIPTION="Google C++ Testing Framework" -HOMEPAGE="https://github.com/google/googletest" - -LICENSE="BSD" -SLOT="0/${PV}" -IUSE="doc examples test" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( ${PYTHON_DEPS} )" - -pkg_setup() { - use test && python-any-r1_pkg_setup -} - -multilib_src_configure() { - if use arm && [[ $(tc-is-softfloat) =~ (softfp)|(no) ]]; then - replace-flags -O* -O1 # bug #925093 - fi - - local mycmakeargs=( - -DBUILD_GMOCK=ON - -DINSTALL_GTEST=ON - - # tests - -Dgmock_build_tests=$(usex test) - -Dgtest_build_tests=$(usex test) - ) - if use test; then - if use x86; then - append-cxxflags -ffloat-store # bug #905007 - fi - mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) - fi - - 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-1.17.0.ebuild b/dev-cpp/gtest/gtest-1.17.0.ebuild deleted file mode 100644 index 404a900e3636..000000000000 --- a/dev-cpp/gtest/gtest-1.17.0.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2026 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_{13..14} ) - -inherit cmake-multilib flag-o-matic python-any-r1 toolchain-funcs - -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/v${PV}.tar.gz - -> ${P}.tar.gz" - S="${WORKDIR}"/googletest-${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 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" -fi - -DESCRIPTION="Google C++ Testing Framework" -HOMEPAGE="https://github.com/google/googletest" - -LICENSE="BSD" -SLOT="0/${PV}" -IUSE="abseil doc examples test" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( ${PYTHON_DEPS} )" -DEPEND="abseil? ( - dev-cpp/abseil-cpp:=[${MULTILIB_USEDEP}] - dev-libs/re2:=[${MULTILIB_USEDEP}] )" -RDEPEND="${DEPEND}" - -# Exclude tests that fail with FEATURES="usersandbox" -CMAKE_SKIP_TESTS=( "googletest-(death-test|port)-test" ) - -PATCHES=( - "${FILESDIR}"/gtest-find-re2-with-pkgconfig.patch - "${FILESDIR}"/gtest-1.15.2-fix-gtest_help_test.patch -) - -pkg_setup() { - use test && python-any-r1_pkg_setup -} - -multilib_src_configure() { - if use arm && [[ $(tc-is-softfloat) =~ (softfp)|(no) ]]; then - replace-flags -O* -O1 # bug #925093 - fi - - local mycmakeargs=( - -DBUILD_GMOCK=ON - -DINSTALL_GTEST=ON - -DGTEST_HAS_ABSL=$(usex abseil) - - # tests - -Dgmock_build_tests=$(usex test) - -Dgtest_build_tests=$(usex test) - ) - if use test; then - if use x86; then - append-cxxflags -ffloat-store # bug #905007 - fi - mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) - fi - - cmake_src_configure -} - -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 deleted file mode 100644 index 9d55e702c34a..000000000000 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 1999-2025 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_{13..14} ) - -inherit cmake-multilib flag-o-matic python-any-r1 toolchain-funcs - -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/v${PV}.tar.gz - -> ${P}.tar.gz" - S="${WORKDIR}"/googletest-${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 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" -fi - -DESCRIPTION="Google C++ Testing Framework" -HOMEPAGE="https://github.com/google/googletest" - -LICENSE="BSD" -SLOT="0/${PV}" -IUSE="abseil doc examples test" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( ${PYTHON_DEPS} )" -DEPEND="abseil? ( - dev-cpp/abseil-cpp:=[${MULTILIB_USEDEP}] - dev-libs/re2:=[${MULTILIB_USEDEP}] )" -RDEPEND="${DEPEND}" - -# Exclude tests that fail with FEATURES="usersandbox" -CMAKE_SKIP_TESTS=( "googletest-(death-test|port)-test" ) - -PATCHES=( - "${FILESDIR}"/gtest-find-re2-with-pkgconfig.patch - "${FILESDIR}"/gtest-1.15.2-fix-gtest_help_test.patch -) - -pkg_setup() { - use test && python-any-r1_pkg_setup -} - -multilib_src_configure() { - if use arm && [[ $(tc-is-softfloat) =~ (softfp)|(no) ]]; then - replace-flags -O* -O1 # bug #925093 - fi - - local mycmakeargs=( - -DBUILD_GMOCK=ON - -DINSTALL_GTEST=ON - -DGTEST_HAS_ABSL=$(usex abseil) - - # tests - -Dgmock_build_tests=$(usex test) - -Dgtest_build_tests=$(usex test) - ) - if use test; then - if use x86; then - append-cxxflags -ffloat-store # bug #905007 - fi - mycmakeargs+=( -DPython3_EXECUTABLE="${PYTHON}" ) - fi - - cmake_src_configure -} - -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/metadata.xml b/dev-cpp/gtest/metadata.xml deleted file mode 100644 index 982d3d7ce6b4..000000000000 --- a/dev-cpp/gtest/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person" proxied="yes"> - <email>plevine457@gmail.com</email> - <name>Peter Levine</name> - </maintainer> - <maintainer type="project" proxied="proxy"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <use> - <flag name="abseil"> - Build with functionality provided by <pkg>dev-cpp/abseil-cpp</pkg> and <pkg>dev-libs/re2</pkg> - </flag> - </use> - <upstream> - <doc lang="en">https://github.com/google/googletest/tree/HEAD/docs</doc> - <remote-id type="github">google/googletest</remote-id> - </upstream> -</pkgmetadata> |
