blob: f93a4e9dca27e949b5471ba3c07b725c5a6b7408 [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="bbba7036234f14eb3559e639045f6c88b1c670a4"
CROS_WORKON_TREE="2a3fc4ce271d9798ef9b41481a29d68e8c248aa9"
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_DESTDIR="${S}/platform2"
CROS_WORKON_INCREMENTAL_BUILD=1
PLATFORM_SUBDIR="mist"
inherit cros-workon libchrome platform udev
DESCRIPTION="Chromium OS Modem Interface Switching Tool"
HOMEPAGE="http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="test"
RDEPEND="
chromeos-base/libchromeos
chromeos-base/metrics
!<chromeos-base/platform2-0.0.9
dev-libs/protobuf
net-dialup/ppp
virtual/libusb:1
virtual/udev
"
DEPEND="
${RDEPEND}
test? ( dev-cpp/gmock )
dev-cpp/gtest
"
platform_pkg_test() {
platform_test "run" "${OUT}/mist_testrunner"
}
src_install() {
dobin "${OUT}"/mist
insinto /usr/share/mist
doins default.conf
udev_dorules 51-mist.rules
}