[arch-commits] Commit in gtest/repos/community-staging-x86_64 (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 21:46:52 UTC 2021


    Date: Wednesday, December 1, 2021 @ 21:46:52
  Author: felixonmars
Revision: 1061136

archrelease: copy trunk to community-staging-x86_64

Added:
  gtest/repos/community-staging-x86_64/PKGBUILD
    (from rev 1061133, gtest/trunk/PKGBUILD)
  gtest/repos/community-staging-x86_64/gtest-version.patch
    (from rev 1061134, gtest/trunk/gtest-version.patch)
Deleted:
  gtest/repos/community-staging-x86_64/PKGBUILD
  gtest/repos/community-staging-x86_64/gtest-version.patch

---------------------+
 PKGBUILD            |  154 +++++++++++++++++++++++++-------------------------
 gtest-version.patch |   44 +++++++-------
 2 files changed, 99 insertions(+), 99 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 21:46:48 UTC (rev 1061135)
+++ PKGBUILD	2021-12-01 21:46:52 UTC (rev 1061136)
@@ -1,77 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
-# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
-# Contributor: Louis R. Marascio <lrm at fitnr.com>
-# Contributor: Cody Maloney <cmaloney at theoreticalchaos.com>
-# Contributor: acxz <akashpatel2008 at yahoo dot com>
-
-pkgname=gtest
-pkgver=1.11.0
-pkgrel=2
-pkgdesc='Google Test - C++ testing utility'
-url='https://github.com/google/googletest'
-arch=('x86_64')
-license=('BSD')
-depends=('gcc-libs' 'sh')
-makedepends=('python' 'cmake' 'gcc-libs' 'sh')
-optdepends=('python: gmock generator')
-conflicts=('gmock')
-replaces=('gmock')
-provides=('gmock')
-_srcname=googletest-release-${pkgver}
-source=(${_srcname}.tar.gz::https://github.com/google/googletest/archive/release-${pkgver}.tar.gz
-        gtest-version.patch)
-sha512sums=('6fcc7827e4c4d95e3ae643dd65e6c4fc0e3d04e1778b84f6e06e390410fe3d18026c131d828d949d2f20dde6327d30ecee24dcd3ef919e21c91e010d149f3a28'
-            'e3e6476d938f65e74a0aa5bbfe58136db937205c8a0536399f46d0096ee728566247b85c82e0067300e465fcbc455a9e0d99611410dece70180aa92170357fbf')
-
-prepare() {
-  cd ${_srcname}
-  cp ../gtest-version.patch gtest-version.patch
-  sed "s|__GOOGLETEST_VERSION__|${pkgver}|g" -i gtest-version.patch
-  patch -Np1 -i gtest-version.patch
-}
-
-build() {
-  cmake -H${_srcname} -Bbuild \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_INSTALL_LIBDIR=lib \
-    -DBUILD_SHARED_LIBS=ON \
-    -Dgtest_build_tests=ON
-  cmake --build build
-}
-
-check() {
-  cmake --build build --target test
-}
-
-package() {
-  DESTDIR="${pkgdir}" cmake --build build --target install
-
-  # Shouldn't be present
-  find "${pkgdir}" -name '*.pump' -printf 'Removing %P\n' -delete
-
-  cd ${_srcname}
-  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.md CONTRIBUTORS -t "${pkgdir}/usr/share/doc/${pkgname}"
-
-  cd googletest
-  install -Dm 755 scripts/gtest-config.in -t "${pkgdir}/usr/bin"
-  install -Dm 644 cmake/* -t "${pkgdir}/usr/src/googletest/cmake"
-  install -Dm 644 src/* -t "${pkgdir}/usr/src/googletest/src"
-  install -Dm 644 CMakeLists.txt -t "${pkgdir}/usr/src/googletest"
-
-  cd ../googlemock
-  install -Dm 644 cmake/* -t "${pkgdir}/usr/src/gmock/cmake"
-  install -Dm 644 src/* -t "${pkgdir}/usr/src/gmock/src"
-  install -Dm 644 CMakeLists.txt -t "${pkgdir}/usr/src/gmock"
-  install -Dm 644 scripts/generator/{*.py,LICENSE,README*} -t "${pkgdir}/usr/share/gmock/generator"
-  install -Dm 644 scripts/generator/cpp/* -t "${pkgdir}/usr/share/gmock/generator/cpp"
-
-  sed -i 's|src/||' "${pkgdir}/usr/src/gmock/src/gmock-all.cc"
-
-  python -m compileall -d /usr/share/gmock "${pkgdir}/usr/share/gmock"
-  python -O -m compileall -d /usr/share/gmock "${pkgdir}/usr/share/gmock"
-}
-
-# vim: ts=2 sw=2 et:

Copied: gtest/repos/community-staging-x86_64/PKGBUILD (from rev 1061133, gtest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-01 21:46:52 UTC (rev 1061136)
@@ -0,0 +1,77 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+# Contributor: Louis R. Marascio <lrm at fitnr.com>
+# Contributor: Cody Maloney <cmaloney at theoreticalchaos.com>
+# Contributor: acxz <akashpatel2008 at yahoo dot com>
+
+pkgname=gtest
+pkgver=1.11.0
+pkgrel=3
+pkgdesc='Google Test - C++ testing utility'
+url='https://github.com/google/googletest'
+arch=('x86_64')
+license=('BSD')
+depends=('gcc-libs' 'sh')
+makedepends=('python' 'cmake' 'gcc-libs' 'sh')
+optdepends=('python: gmock generator')
+conflicts=('gmock')
+replaces=('gmock')
+provides=('gmock')
+_srcname=googletest-release-${pkgver}
+source=(${_srcname}.tar.gz::https://github.com/google/googletest/archive/release-${pkgver}.tar.gz
+        gtest-version.patch)
+sha512sums=('6fcc7827e4c4d95e3ae643dd65e6c4fc0e3d04e1778b84f6e06e390410fe3d18026c131d828d949d2f20dde6327d30ecee24dcd3ef919e21c91e010d149f3a28'
+            'e3e6476d938f65e74a0aa5bbfe58136db937205c8a0536399f46d0096ee728566247b85c82e0067300e465fcbc455a9e0d99611410dece70180aa92170357fbf')
+
+prepare() {
+  cd ${_srcname}
+  cp ../gtest-version.patch gtest-version.patch
+  sed "s|__GOOGLETEST_VERSION__|${pkgver}|g" -i gtest-version.patch
+  patch -Np1 -i gtest-version.patch
+}
+
+build() {
+  cmake -H${_srcname} -Bbuild \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DBUILD_SHARED_LIBS=ON \
+    -Dgtest_build_tests=ON
+  cmake --build build
+}
+
+check() {
+  cmake --build build --target test
+}
+
+package() {
+  DESTDIR="${pkgdir}" cmake --build build --target install
+
+  # Shouldn't be present
+  find "${pkgdir}" -name '*.pump' -printf 'Removing %P\n' -delete
+
+  cd ${_srcname}
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.md CONTRIBUTORS -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  cd googletest
+  install -Dm 755 scripts/gtest-config.in -t "${pkgdir}/usr/bin"
+  install -Dm 644 cmake/* -t "${pkgdir}/usr/src/googletest/cmake"
+  install -Dm 644 src/* -t "${pkgdir}/usr/src/googletest/src"
+  install -Dm 644 CMakeLists.txt -t "${pkgdir}/usr/src/googletest"
+
+  cd ../googlemock
+  install -Dm 644 cmake/* -t "${pkgdir}/usr/src/gmock/cmake"
+  install -Dm 644 src/* -t "${pkgdir}/usr/src/gmock/src"
+  install -Dm 644 CMakeLists.txt -t "${pkgdir}/usr/src/gmock"
+  install -Dm 644 scripts/generator/{*.py,LICENSE,README*} -t "${pkgdir}/usr/share/gmock/generator"
+  install -Dm 644 scripts/generator/cpp/* -t "${pkgdir}/usr/share/gmock/generator/cpp"
+
+  sed -i 's|src/||' "${pkgdir}/usr/src/gmock/src/gmock-all.cc"
+
+  python -m compileall -d /usr/share/gmock "${pkgdir}/usr/share/gmock"
+  python -O -m compileall -d /usr/share/gmock "${pkgdir}/usr/share/gmock"
+}
+
+# vim: ts=2 sw=2 et:

Deleted: gtest-version.patch
===================================================================
--- gtest-version.patch	2021-12-01 21:46:48 UTC (rev 1061135)
+++ gtest-version.patch	2021-12-01 21:46:52 UTC (rev 1061136)
@@ -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 @@
-   project(gmock CXX C)
- else()
-   cmake_policy(SET CMP0048 NEW)
-+  set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
-   project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
- endif()
- cmake_minimum_required(VERSION 2.6.4)
-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 @@
- 
- # Project version:
- 
-+set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
- if (CMAKE_VERSION VERSION_LESS 3.0)
-   project(gtest CXX C)
-   set(PROJECT_VERSION ${GOOGLETEST_VERSION})

Copied: gtest/repos/community-staging-x86_64/gtest-version.patch (from rev 1061134, gtest/trunk/gtest-version.patch)
===================================================================
--- gtest-version.patch	                        (rev 0)
+++ gtest-version.patch	2021-12-01 21:46:52 UTC (rev 1061136)
@@ -0,0 +1,22 @@
+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 @@
+   project(gmock CXX C)
+ else()
+   cmake_policy(SET CMP0048 NEW)
++  set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
+   project(gmock VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)
+ endif()
+ cmake_minimum_required(VERSION 2.6.4)
+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 @@
+ 
+ # Project version:
+ 
++set(GOOGLETEST_VERSION __GOOGLETEST_VERSION__)
+ if (CMAKE_VERSION VERSION_LESS 3.0)
+   project(gtest CXX C)
+   set(PROJECT_VERSION ${GOOGLETEST_VERSION})



More information about the arch-commits mailing list