blob: 94485bd01749a45d3e51120c36ac7dd79417be20 [file] [log] [blame]
# Copyright 2018 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EAPI=5
CROS_WORKON_COMMIT="bc6491d27ab0a53edd7010f997a29697eae441b7"
CROS_WORKON_TREE="1528c8c924f431dc179738acdef5c427af5eed09"
CROS_WORKON_PROJECT="chromiumos/platform/newblue"
CROS_WORKON_LOCALNAME="newblue"
CROS_WORKON_INCREMENTAL_BUILD=1
inherit toolchain-funcs multilib cros-workon udev
DESCRIPTION="NewBlue Bluetooth stack"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/newblue"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
src_configure() {
cros-workon_src_configure
}
src_test() {
if ! use x86 && ! use amd64 ; then
elog "Skipping unit tests on non-x86 platform"
else
emake test
fi
}
src_install() {
emake DESTDIR="${D}" libdir=/usr/"$(get_libdir)" install
insinto /usr/"$(get_libdir)"/pkgconfig
doins newblue.pc
udev_dorules "${FILESDIR}"/50-newblue.rules
}