blob: 2cf58325bb0f83d8c010ea4af5fa896820d7a3b2 [file] [log] [blame]
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=4
CROS_WORKON_COMMIT="7de6a0eb2a4dbd1af0e7646d7913b56972ace113"
CROS_WORKON_TREE="d946cb4ad579877450b0a80ebc64c6825c165638"
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_OUTOFTREE_BUILD=1
PLATFORM_SUBDIR="soma"
inherit cros-workon platform
DESCRIPTION="Service bundle config processor service for Brillo."
HOMEPAGE="http://www.chromium.org/"
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="test"
RDEPEND="
brillo-base/libprotobinder
brillo-base/libpsyche
"
DEPEND="${RDEPEND}
dev-cpp/gtest"
src_install() {
dosbin "${OUT}"/somad
# Adding libsoma and headers.
./preinstall.sh "${OUT}" || die
insinto /usr/$(get_libdir)/pkgconfig
doins "${OUT}"/*.pc
dolib.so "${OUT}"/lib/libsoma.so
insinto /usr/include/"${PN}"
doins lib/soma/*.h
# Adding init scripts.
insinto /etc/init
doins init/*.conf
# Adding proto files.
insinto /usr/share/proto
doins idl/*.proto
# Adding directory for container specs.
dodir /etc/container_specs
}
platform_pkg_test() {
local tests=( somad_test libsoma_test )
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}"
done
}