| # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2 |
| |
| EAPI=4 |
| |
| CROS_WORKON_COMMIT=("bbba7036234f14eb3559e639045f6c88b1c670a4" "8bdf39900ea712a56d7f99cdeba802e8c314e049") |
| CROS_WORKON_TREE=("2a3fc4ce271d9798ef9b41481a29d68e8c248aa9" "4c37bd7e90d22c541edfac58e86c7b1ffd424c51") |
| CROS_WORKON_INCREMENTAL_BUILD=1 |
| CROS_WORKON_USE_VCSID=1 |
| CROS_WORKON_LOCALNAME=( |
| "platform2" |
| "platform/system_api" |
| ) |
| CROS_WORKON_PROJECT=( |
| "chromiumos/platform2" |
| "chromiumos/platform/system_api" |
| ) |
| CROS_WORKON_DESTDIR=( |
| "${S}/platform2" |
| "${S}/platform/system_api" |
| ) |
| |
| PLATFORM_SUBDIR="system_api" |
| |
| inherit cros-workon toolchain-funcs platform |
| |
| DESCRIPTION="Chrome OS system API (D-Bus service names, etc.)" |
| HOMEPAGE="http://www.chromium.org/" |
| LICENSE="BSD" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="" |
| |
| RDEPEND="!<chromeos-base/platform2-0.0.3" |
| DEPEND="${RDEPEND}" |
| |
| src_unpack() { |
| local s="${S}" |
| platform_src_unpack |
| |
| # The platform eclass will look for system_api in src/platform2. |
| # This forces it to look in src/platform. |
| S="${s}/platform/system_api" |
| } |
| |
| src_install() { |
| dolib.a "${OUT}"/libsystem_api*.a |
| |
| insinto /usr/"$(get_libdir)"/pkgconfig |
| doins system_api.pc |
| |
| rm dbus/power_manager/OWNERS |
| |
| insinto /usr/include/chromeos |
| doins -r dbus switches constants |
| |
| local dir dirs=( cryptohome power_manager system_api ) |
| for dir in "${dirs[@]}"; do |
| insinto /usr/include/"${dir}"/proto_bindings |
| doins -r "${OUT}"/gen/include/"${dir}"/proto_bindings/*.h |
| done |
| } |