| # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI="4" |
| CROS_WORKON_COMMIT="879ba9a669b416c7b9be06f255aa0b18e2cf237e" |
| CROS_WORKON_TREE="8667d0efe7176d1da3b67f62ba34b05ed28da514" |
| CROS_WORKON_PROJECT="chromiumos/platform/permission_broker" |
| CROS_WORKON_OUTOFTREE_BUILD=1 |
| |
| inherit cros-debug cros-workon |
| |
| DESCRIPTION="Permission Broker for Chromium OS" |
| HOMEPAGE="http://www.chromium.org/" |
| |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="-asan -clang" |
| REQUIRED_USE="asan? ( clang )" |
| RESTRICT="test" |
| |
| LIBCHROME_VERS="242728" |
| |
| RDEPEND="chromeos-base/platform2 |
| dev-cpp/gflags |
| dev-cpp/glog |
| dev-libs/glib |
| dev-libs/libusb |
| sys-fs/udev" |
| |
| DEPEND="${RDEPEND} |
| chromeos-base/libchrome:${LIBCHROME_VERS}[cros-debug=] |
| test? ( dev-cpp/gmock ) |
| test? ( dev-cpp/gtest )" |
| |
| src_prepare() { |
| cros-workon_src_prepare |
| } |
| |
| src_configure() { |
| clang-setup-env |
| cros-workon_src_configure |
| } |
| |
| src_compile() { |
| cros-workon_src_compile |
| } |
| |
| src_install() { |
| cros-workon_src_install |
| # Built binaries |
| pushd "${OUT}" >/dev/null |
| dobin permission_broker |
| popd >/dev/null |
| |
| # Install upstart configuration |
| insinto /etc/init |
| doins permission_broker.conf |
| |
| # DBus configuration |
| insinto /etc/dbus-1/system.d |
| doins dbus/org.chromium.PermissionBroker.conf |
| } |