blob: eaa4f33de9a4ada65f38f83e74e71b86426be0ed [file] [log] [blame] [edit]
# 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="1f778c9ef66c1a0f0b14d73e9331fe91ef3ccbc2"
CROS_WORKON_PROJECT="chromiumos/platform/dev-util"
inherit cros-workon
DESCRIPTION="A util for installing packages using the CrOS dev server"
HOMEPAGE="http://www.chromium.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE=""
CROS_WORKON_LOCALNAME="dev"
RDEPEND="app-shells/bash
dev-lang/python
dev-libs/shflags
sys-apps/portage"
DEPEND="${RDEPEND}"
CHROMEOS_PROFILE="/usr/local/portage/chromiumos/profiles/targets/chromeos"
src_install() {
exeinto /usr/local/bin
doexe gmerge
doexe stateful_update
# Setup package.provided so that gmerge will know what packages to ignore.
# - $ROOT/etc/portage/profile/package.provided contains compiler tools and
# and is setup by setup_board. We know that that file will be present in
# $ROOT because the initial compile of packages takes place in
# /build/$BOARD.
# - $CHROMEOS_PROFILE/package.provided contains packages that we don't
# want to install to the device.
insinto /usr/local/etc/make.profile/package.provided
newins $ROOT/etc/portage/profile/package.provided compiler
newins $CHROMEOS_PROFILE/package.provided chromeos
}