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

Antonio Rojas arojas at gemini.archlinux.org
Wed Jul 6 22:00:27 UTC 2022


    Date: Wednesday, July 6, 2022 @ 22:00:26
  Author: arojas
Revision: 1246779

archrelease: copy trunk to community-x86_64

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

---------------------+
 PKGBUILD            |  136 ++++++++++++++++++++++++++------------------------
 gtest-version.patch |   22 ++++++++
 2 files changed, 94 insertions(+), 64 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-06 22:00:17 UTC (rev 1246778)
+++ PKGBUILD	2022-07-06 22:00:26 UTC (rev 1246779)
@@ -1,64 +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.12.0
-pkgrel=1
-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)
-sha512sums=('6216e76a8c988b6b3739f3988c85f369eef2a8036c4412621a0d3d04ceeada00d35e487363be0a265035ac78f1a5065e1fe054a285c43df23b6abcc69f8bfe3d')
-
-build() {
-  cmake -H${_srcname} -Bbuild \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -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 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"
-
-  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-x86_64/PKGBUILD (from rev 1246778, gtest/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-06 22:00:26 UTC (rev 1246779)
@@ -0,0 +1,72 @@
+# 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.12.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=('6216e76a8c988b6b3739f3988c85f369eef2a8036c4412621a0d3d04ceeada00d35e487363be0a265035ac78f1a5065e1fe054a285c43df23b6abcc69f8bfe3d'
+            'ebfd53ac33298e870c04a1f89609d8327152d3d73e7842219af3a11d5ee484033543064b557cc9c8f45057e608e0ee347318070a3ea5d17040bace02110ed8df')
+
+prepare() {
+  cd ${_srcname}
+  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 \
+    -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 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"
+
+  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-x86_64/gtest-version.patch (from rev 1246778, gtest/trunk/gtest-version.patch)
===================================================================
--- gtest-version.patch	                        (rev 0)
+++ gtest-version.patch	2022-07-06 22:00:26 UTC (rev 1246779)
@@ -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 @@
+ # 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



More information about the arch-commits mailing list