From 339f62c28b409abf120ec6b9d415fd07f7ada011 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 11 Nov 2011 15:21:44 -0500 Subject: [PATCH] gmock: import from upstream Gentoo The upstream Gentoo version of the gmock ebuild should cover all our existing needs, but it also includes some build fixes which make cross compiling work nicely (running elibtoolize). BUG=chromium-os:21276 TEST=`emerge-arm-generic gmock` works w/out -I/-L hacks TEST=`emerge-x86-generic gmock` still works TEST=`emerge gmock` still works Change-Id: I10176d5eff98b7dfb4e0294409969ad36f90715d Reviewed-on: https://gerrit.chromium.org/gerrit/11578 Reviewed-by: David James Reviewed-by: Raymes Khoury Reviewed-by: Chris Wolfe Reviewed-by: Vince Laviano Tested-by: Mike Frysinger Commit-Ready: Mike Frysinger --- .../dev-cpp/gmock/gmock-1.4.0.ebuild | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-cpp/gmock/gmock-1.4.0.ebuild diff --git a/sdk_container/src/third_party/portage-stable/dev-cpp/gmock/gmock-1.4.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-cpp/gmock/gmock-1.4.0.ebuild new file mode 100644 index 0000000000..e68412d585 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-cpp/gmock/gmock-1.4.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/gmock/gmock-1.5.0.ebuild,v 1.2 2011/11/11 20:12:12 vapier Exp $ + +EAPI="4" + +inherit libtool + +DESCRIPTION="Google's C++ mocking framework" +HOMEPAGE="http://code.google.com/p/googlemock/" +SRC_URI="http://googlemock.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="static-libs" + +RDEPEND=">=dev-cpp/gtest-${PV}" +DEPEND="${RDEPEND}" + +src_unpack() { + default + # make sure we always use the system one + rm -r "${S}"/gtest/Makefile* || die +} + +src_prepare() { + elibtoolize +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_install() { + default + use static-libs || find "${D}" -name '*.la' -delete +}