diff options
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/gtest/ChangeLog | 7 | ||||
-rw-r--r-- | dev-cpp/gtest/gtest-1.6.0-r2.ebuild | 66 |
2 files changed, 72 insertions, 1 deletions
diff --git a/dev-cpp/gtest/ChangeLog b/dev-cpp/gtest/ChangeLog index fffda6244f8f..3a9e9fd1dd88 100644 --- a/dev-cpp/gtest/ChangeLog +++ b/dev-cpp/gtest/ChangeLog @@ -1,5 +1,10 @@ # ChangeLog for dev-cpp/gtest -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v 1.30 2013/03/29 01:55:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/ChangeLog,v 1.31 2013/04/06 07:45:16 tomka Exp $ + +*gtest-1.6.0-r2 (06 Apr 2013) + + 06 Apr 2013; Thomas Kahle <tomka@gentoo.org> +gtest-1.6.0-r2.ebuild: + add multilib support, thanks to Karl Lindén (bug 464702) 29 Mar 2013; Mike Frysinger <vapier@gentoo.org> gtest-1.6.0-r1.ebuild: Remove pointless die with epatch. diff --git a/dev-cpp/gtest/gtest-1.6.0-r2.ebuild b/dev-cpp/gtest/gtest-1.6.0-r2.ebuild new file mode 100644 index 000000000000..bf91bbb582da --- /dev/null +++ b/dev-cpp/gtest/gtest-1.6.0-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gtest/gtest-1.6.0-r2.ebuild,v 1.1 2013/04/06 07:45:16 tomka Exp $ + +EAPI="5" +PYTHON_DEPEND="2" + +inherit eutils python autotools-multilib + +DESCRIPTION="Google C++ Testing Framework" +HOMEPAGE="http://code.google.com/p/googletest/" +SRC_URI="http://googletest.googlecode.com/files/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" +IUSE="examples static-libs" + +DEPEND="app-arch/unzip" +RDEPEND="" + +PATCHES=( + "${FILESDIR}/configure-fix-pthread-linking.patch" #371647 +) + +AUTOTOOLS_AUTORECONF="1" + +pkg_setup() { + python_pkg_setup + python_set_active_version 2 +} + +src_prepare() { + sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die + sed -i -r \ + -e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \ + Makefile.am || die + autotools-multilib_src_prepare + + python_convert_shebangs -r 2 . + + multilib_copy_sources +} + +src_configure() { + multilib_parallel_foreach_abi gtest_src_configure +} + +src_install() { + autotools-multilib_src_install + multilib_for_best_abi gtest-config_install + + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins samples/*.{cc,h} + fi +} + +gtest_src_configure() { + ECONF_SOURCE="${BUILD_DIR}" + autotools-utils_src_configure +} + +gtest-config_install() { + dobin "${BUILD_DIR}/scripts/gtest-config" +} |