mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
googletest, bump version (#2111)
This commit is contained in:
97
dev-libs/gtest/gtest-1.9.0~git.recipe
Normal file
97
dev-libs/gtest/gtest-1.9.0~git.recipe
Normal file
@@ -0,0 +1,97 @@
|
||||
SUMMARY="C++ test framework"
|
||||
DESCRIPTION="C++ testing utility
|
||||
Features:
|
||||
* An xUnit test framework
|
||||
* Test discovery
|
||||
* A rich set of assertions
|
||||
* User-defined assertions
|
||||
* Death tests
|
||||
* Fatal and non-fatal failures
|
||||
* Value-parameterized tests
|
||||
* Type-parameterized tests
|
||||
* Various options for running the tests
|
||||
* XML test report generation"
|
||||
HOMEPAGE="https://github.com/google/googletest"
|
||||
COPYRIGHT="2008-2018 Google Test developers"
|
||||
LICENSE="BSD (3-clause)"
|
||||
srcGitRev="ea31cb15f0c2ab9f5f5b18e82311eb522989d747"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/google/googletest/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="41a782bacfed269409e533599f2272910e6c7ccd0c3d03f9694c693916070180"
|
||||
SOURCE_FILENAME="googletest-$portVersion-$srcGitRev.tar.gz"
|
||||
SOURCE_DIR="googletest-$srcGitRev"
|
||||
PATCHES="gtest-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gtest$secondaryArchSuffix = $portVersion
|
||||
lib:libgmock$secondaryArchSuffix
|
||||
lib:libgmock_main$secondaryArchSuffix
|
||||
lib:libgtest$secondaryArchSuffix
|
||||
lib:libgtest_main$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
gtest${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libgmock$secondaryArchSuffix
|
||||
devel:libgmock_main$secondaryArchSuffix
|
||||
devel:libgtest$secondaryArchSuffix
|
||||
devel:libgtest_main$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
gtest$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
cmd:python2
|
||||
"
|
||||
|
||||
defineDebugInfoPackage gtest$secondaryArchSuffix \
|
||||
$libDir/libgmock.so \
|
||||
$libDir/libgmock_main.so \
|
||||
$libDir/libgtest.so \
|
||||
$libDir/libgtest_main.so
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
|
||||
cmake .. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE='Release' \
|
||||
-DBUILD_SHARED_LIBS:BOOL=ON
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libgmock libgmock_main libgtest libgtest_main
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
#test needs to be enabled during build (fails on 6 out of 18)
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
45
dev-libs/gtest/patches/gtest-1.9.0~git.patchset
Normal file
45
dev-libs/gtest/patches/gtest-1.9.0~git.patchset
Normal file
@@ -0,0 +1,45 @@
|
||||
From 8a4c29465dd405c956f67c495acf67b9f6b98d62 Mon Sep 17 00:00:00 2001
|
||||
From: begasus <begasus@gmail.com>
|
||||
Date: Sun, 18 Mar 2018 13:46:10 +0100
|
||||
Subject: create empty prefix variable for pkg-config
|
||||
|
||||
|
||||
diff --git a/googlemock/cmake/gmock.pc.in b/googlemock/cmake/gmock.pc.in
|
||||
index c441642..b0a946f 100644
|
||||
--- a/googlemock/cmake/gmock.pc.in
|
||||
+++ b/googlemock/cmake/gmock.pc.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+prefix=@PREFIX@
|
||||
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
|
||||
diff --git a/googlemock/cmake/gmock_main.pc.in b/googlemock/cmake/gmock_main.pc.in
|
||||
index c377dba..9108e6c 100644
|
||||
--- a/googlemock/cmake/gmock_main.pc.in
|
||||
+++ b/googlemock/cmake/gmock_main.pc.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+prefix=@PREFIX@
|
||||
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
|
||||
diff --git a/googletest/cmake/gtest.pc.in b/googletest/cmake/gtest.pc.in
|
||||
index e7967ad..4055a96 100644
|
||||
--- a/googletest/cmake/gtest.pc.in
|
||||
+++ b/googletest/cmake/gtest.pc.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+prefix=@PREFIX@
|
||||
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
|
||||
diff --git a/googletest/cmake/gtest_main.pc.in b/googletest/cmake/gtest_main.pc.in
|
||||
index fe25d9c..f862028 100644
|
||||
--- a/googletest/cmake/gtest_main.pc.in
|
||||
+++ b/googletest/cmake/gtest_main.pc.in
|
||||
@@ -1,3 +1,4 @@
|
||||
+prefix=@PREFIX@
|
||||
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
|
||||
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
|
||||
--
|
||||
2.16.2
|
||||
|
||||
Reference in New Issue
Block a user