blob: 4f955f449102090ee222bacba2cf17c55d2ae0ad [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=2
CROS_WORKON_COMMIT="adf8a003e8414eb296b0e0b72d88ae3c6d34921c"
CROS_WORKON_TREE="f333c2a9f911385226e263476241cec958d4fc1c"
CROS_WORKON_PROJECT="chromiumos/platform/crosutils"
CROS_WORKON_LOCALNAME="../scripts/"
inherit python cros-workon
DESCRIPTION="Chromium OS build utilities"
HOMEPAGE="http://www.chromium.org/chromium-os"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
src_configure() {
find . -type l -exec rm {} \; &&
rm -fr WATCHLISTS inherit-review-settings-ok lib/shflags ||
die "Couldn't clean directory."
}
src_install() {
# Install package files
exeinto /usr/lib/crosutils
doexe * || die "Could not install shared files."
insinto "$(python_get_sitedir)"
doins lib/*.py || die "Could not install python files."
rm -f lib/*.py
# Install libraries
insinto /usr/lib/crosutils/lib
doins lib/* || die "Could not install library files"
}