gtest: update to 1.14.0

This commit is contained in:
Mehdi Chinoune 2023-11-10 06:50:48 +00:00 committed by مهدي شينون (Mehdi Chinoune)
parent 3defbdbd02
commit 6833e8f744
2 changed files with 5 additions and 35 deletions

View File

@ -1,25 +1,17 @@
# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
pkgname=gtest
pkgver=1.13.0
pkgver=1.14.0
pkgrel=1
pkgdesc='Google Test - C++ testing utility'
url='https://github.com/google/googletest'
arch=('i686' 'x86_64')
license=('BSD')
license=('spdx:BSD-3-Clause')
depends=('gcc-libs' 'sh')
makedepends=('python' 'cmake' 'gcc-libs' 'sh' 'gcc')
_srcname=googletest-${pkgver}
source=(${_srcname}.tar.gz::https://github.com/google/googletest/archive/v${pkgver}.tar.gz
gtest-version.patch)
sha256sums=('ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363'
'5d0c1c90c14b8b904f70607cdbb445c3f973808ae5b06caa86226e530e0d8d4d')
prepare() {
cd ${_srcname}
sed "s|__GOOGLETEST_VERSION__|${pkgver}|g" -i ../gtest-version.patch
patch -Np1 -i ../gtest-version.patch
}
source=(https://github.com/google/googletest/archive/v${pkgver}/${_srcname}.tar.gz)
sha256sums=('8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7')
build() {
cmake -H${_srcname} -Bbuild \
@ -34,7 +26,7 @@ check() {
}
package() {
DESTDIR="${pkgdir}" cmake --build build --target install
DESTDIR="${pkgdir}" cmake --install build
# Shouldn't be present
find "${pkgdir}" -name '*.pump' -printf 'Removing %P\n' -delete

View File

@ -1,22 +0,0 @@
diff --unified --recursive --text googletest-release-1.11.0.orig/googlemock/CMakeLists.txt googletest-release-1.11.0/googlemock/CMakeLists.txt
--- googletest-release-1.11.0.orig/googlemock/CMakeLists.txt 2020-11-13 14:33:36.022632459 -0500
+++ googletest-release-1.11.0/googlemock/CMakeLists.txt 2020-11-13 14:35:01.806861990 -0500
@@ -40,6 +40,7 @@
# Language "C" is required for find_package(Threads).
cmake_minimum_required(VERSION 3.5)
cmake_policy(SET CMP0048 NEW)
+ set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
if (COMMAND set_up_hermetic_build)
diff --unified --recursive --text googletest-release-1.11.0.orig/googletest/CMakeLists.txt googletest-release-1.11.0/googletest/CMakeLists.txt
--- googletest-release-1.11.0.orig/googletest/CMakeLists.txt 2020-11-13 14:33:36.039299268 -0500
+++ googletest-release-1.11.0/googletest/CMakeLists.txt 2020-11-13 14:37:10.274915300 -0500
@@ -46,6 +46,7 @@
cmake_minimum_required(VERSION 3.5)
cmake_policy(SET CMP0048 NEW)
+set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
if (POLICY CMP0063) # Visibility