blob: 958e95b81f8c193b1cf53cfc946de3aa2d93c30a [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="6bb9b8fe43e0b5add60f97ce92d0f4a2ecab65e1"
CROS_WORKON_TREE="8e47c3054d0748628354df2cc1713f31a4855a81"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_USE_VCSID=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
PLATFORM_SUBDIR="wimax_manager"
inherit cros-workon platform
DESCRIPTION="Chromium OS WiMAX Manager"
HOMEPAGE="http://dev.chromium.org/chromium-os/platform"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="gdmwimax test"
RDEPEND="
dev-libs/dbus-c++
gdmwimax? (
chromeos-base/libbrillo
chromeos-base/metrics
>=dev-libs/glib-2.30
dev-libs/protobuf
virtual/gdmwimax
)
"
DEPEND="
${RDEPEND}
gdmwimax? ( chromeos-base/system_api )
test? ( dev-cpp/gmock )
dev-cpp/gtest
"
src_install() {
# Install D-Bus introspection XML files.
insinto /usr/share/dbus-1/interfaces
doins dbus_bindings/org.chromium.WiMaxManager*.xml
# Install D-Bus client library.
platform_install_dbus_client_lib
# Skip the rest of the files unless USE=gdmwimax is specified.
use gdmwimax || return 0
# Install daemon executable.
dosbin "${OUT}"/wimax-manager
# Install WiMAX Manager default config file.
insinto /usr/share/wimax-manager
doins default.conf
# Install upstart config file.
insinto /etc/init
doins wimax_manager.conf
# Install D-Bus config file.
insinto /etc/dbus-1/system.d
doins dbus_bindings/org.chromium.WiMaxManager.conf
}
platform_pkg_test() {
use gdmwimax || return 0
platform_test "run" "${OUT}/wimax_manager_testrunner"
}