blob: 9274949f79b0918d4a45874aed9a5e1593865f14 [file] [log] [blame]
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="8e05e0de29e20e5d3b19acc37eb3a947ccb4eff4"
CROS_WORKON_TREE="5cb5f867d8381ad2d777b9e2a0f32e0bc80a1189"
CROS_WORKON_PROJECT="chromiumos/platform/bootstat"
inherit cros-workon
DESCRIPTION="Chrome OS Boot Time Statistics Utilities"
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE=""
RDEPEND=""
DEPEND="dev-cpp/gtest"
src_configure() {
cros-workon_src_configure
tc-export CC CXX AR PKG_CONFIG
}
src_compile() {
emake
}
src_test() {
emake tests
if ! use x86 && ! use amd64 ; then
echo Skipping unit tests on non-x86 platform
else
for test in ./*_test; do
"${test}" ${GTEST_ARGS} || die "${test} failed"
done
fi
}
src_install() {
into /
dosbin bootstat
dosbin bootstat_archive
dosbin bootstat_get_last
dobin bootstat_summary
into /usr
dolib.a libbootstat.a
insinto /usr/include/metrics
doins bootstat.h
}