blob: e1515a2e7ccc9cfc6d17dc37dde847b4a6c98d21 [file] [log] [blame]
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
inherit python cros-constants
DESCRIPTION="Chromium telemetry dep"
HOMEPAGE="http://www.chromium.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
# Ensure the telemetry dep tarball is created already.
DEPEND="chromeos-base/chromeos-chrome"
RDEPEND="dev-python/psutil"
S=${WORKDIR}
src_unpack() {
ln -s "${SYSROOT}${AUTOTEST_BASE}/packages/dep-telemetry_dep.tar.bz2" .
unpack ./dep-telemetry_dep.tar.bz2
# Some telemetry code hardcodes in 'src'
mv test_src src || die
}
src_install() {
insinto /usr/local/telemetry
doins -r "${WORKDIR}"/*
# Add telemetry to the python path.
dodir "$(python_get_sitedir)"
echo "/usr/local/telemetry/src/third_party/catapult/telemetry" > \
"${ED}$(python_get_sitedir)/telemetry.pth" || die
}