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 <davidjames@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Chris Wolfe <cwolfe@chromium.org>
Reviewed-by: Vince Laviano <vlaviano@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2011-11-11 15:21:44 -05:00 committed by Gerrit
parent 932f57ccf0
commit 339f62c28b

View File

@ -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
}