diff options
author | eroen <eroen@occam.eroen.eu> | 2015-01-03 16:27:09 +0100 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2015-01-06 01:05:56 +0100 |
commit | da0fe96030ad0fb27d391d812655d89810480332 (patch) | |
tree | c17c1fba68beb88ddf988e8dc96a435cf50b3bde /dev-cpp | |
parent | gtest-1.7.0 from gentoo (diff) | |
download | eroen-da0fe96030ad0fb27d391d812655d89810480332.tar.gz eroen-da0fe96030ad0fb27d391d812655d89810480332.tar.bz2 eroen-da0fe96030ad0fb27d391d812655d89810480332.zip |
gtest-1.7.0 - enable tr1 switch
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/gtest/gtest-1.7.0.ebuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-cpp/gtest/gtest-1.7.0.ebuild b/dev-cpp/gtest/gtest-1.7.0.ebuild index 6b4f72a..d141ef5 100644 --- a/dev-cpp/gtest/gtest-1.7.0.ebuild +++ b/dev-cpp/gtest/gtest-1.7.0.ebuild @@ -9,7 +9,7 @@ AUTOTOOLS_IN_SOURCE_BUILD=1 # Python is required for tests and some build tasks. PYTHON_COMPAT=( python{2_6,2_7} ) -inherit eutils python-any-r1 autotools-multilib +inherit eutils flag-o-matic python-any-r1 autotools-multilib DESCRIPTION="Google C++ Testing Framework" HOMEPAGE="http://code.google.com/p/googletest/" @@ -18,7 +18,7 @@ SRC_URI="http://googletest.googlecode.com/files/${P}.zip" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="examples static-libs" +IUSE="examples static-libs +tr1" DEPEND="app-arch/unzip ${PYTHON_DEPS}" @@ -28,6 +28,13 @@ PATCHES=( "${FILESDIR}/configure-fix-pthread-linking.patch" #371647 ) +pkg_setup() { + if ! use tr1; then + append-cflags -DGTEST_USE_OWN_TR1_TUPLE=1 + append-cxxflags -DGTEST_USE_OWN_TR1_TUPLE=1 + fi +} + src_prepare() { sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die sed -i -r \ |