blob: 671730c0ed7d7752c5ac3377c77d3eb096244f9b [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
KEYWORDS="~arm ~amd64 ~x86"
CROS_WORKON_PROJECT="chromiumos/platform/image-burner"
inherit cros-debug cros-workon
DESCRIPTION="Image-burning service for Chromium OS."
HOMEPAGE="http://src.chromium.org"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
RDEPEND="chromeos-base/libchromeos
chromeos-base/libcros
dev-libs/dbus-glib
dev-libs/glib"
DEPEND="${RDEPEND}"
CROS_WORKON_LOCALNAME="$(basename ${CROS_WORKON_PROJECT})"
src_compile() {
tc-export CXX PKG_CONFIG
cros-debug-add-NDEBUG
emake image_burner || die "chromeos-imageburner compile failed."
emake image_burner_tester || \
die "chromeos-imageburner_tester compile failed."
}
src_install() {
dosbin "${S}/image_burner"
dosbin "${S}/image_burner_tester"
insinto /etc/dbus-1/system.d
doins "${S}/ImageBurner.conf"
insinto /usr/share/dbus-1/system-services
doins "${S}/org.chromium.ImageBurner.service"
}