From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2B11B1384B4 for ; Tue, 22 Dec 2015 08:58:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CB4421C049; Tue, 22 Dec 2015 08:58:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 10FD121C049 for ; Tue, 22 Dec 2015 08:58:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A20BD33F9D2 for ; Tue, 22 Dec 2015 08:58:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 44007C6F for ; Tue, 22 Dec 2015 08:58:31 +0000 (UTC) From: "Thomas Kahle" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Kahle" Message-ID: <1450774705.b050ee5291ab32b76437aae9656f69457c666801.tomka@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/gtest/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/gtest/gtest-1.7.0-r1.ebuild X-VCS-Directories: dev-cpp/gtest/ X-VCS-Committer: tomka X-VCS-Committer-Name: Thomas Kahle X-VCS-Revision: b050ee5291ab32b76437aae9656f69457c666801 X-VCS-Branch: master Date: Tue, 22 Dec 2015 08:58:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f239ae48-c3f6-4e54-803f-a513452f7bad X-Archives-Hash: 2779b2c8646d1137adadfa75feb6041b commit: b050ee5291ab32b76437aae9656f69457c666801 Author: Thomas Kahle gentoo org> AuthorDate: Tue Dec 22 08:58:07 2015 +0000 Commit: Thomas Kahle gentoo org> CommitDate: Tue Dec 22 08:58:25 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b050ee52 dev-cpp/gtest: Try to fix cross-compile (bug 566876) Package-Manager: portage-2.2.24 dev-cpp/gtest/gtest-1.7.0-r1.ebuild | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/dev-cpp/gtest/gtest-1.7.0-r1.ebuild b/dev-cpp/gtest/gtest-1.7.0-r1.ebuild new file mode 100644 index 0000000..77b2bbd --- /dev/null +++ b/dev-cpp/gtest/gtest-1.7.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 +# Python is required for tests and some build tasks. +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-any-r1 autotools-multilib + +DESCRIPTION="Google C++ Testing Framework" +HOMEPAGE="https://github.com/google/googletest" +SRC_URI="https://googletest.googlecode.com/files/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="examples static-libs" + +DEPEND="app-arch/unzip + ${PYTHON_DEPS}" +RDEPEND="" + +PATCHES=( + "${FILESDIR}/configure-fix-pthread-linking.patch" #371647 +) + +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 + elibtoolize --reverse-deps + autotools-multilib_src_prepare +} + +multilib_src_install() { + default + multilib_is_native_abi && dobin scripts/gtest-config +} + +multilib_src_install_all() { + prune_libtool_files --all + einstalldocs + + if use examples ; then + insinto /usr/share/doc/${PF}/examples + doins samples/*.{cc,h} + fi +}