blob: ea9448edb82f0bca502fa83f6c64779fd0d7700b [file] [log] [blame]
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CROS_WORKON_COMMIT="9276abac2308c7fb7f1d559b092cfa5a55857942"
CROS_WORKON_TREE="15c12de8f15b80442f243e7f1f78971e18b23c16"
CROS_WORKON_PROJECT="chromiumos/third_party/huddly-updater"
inherit cros-debug cros-workon libchrome udev user
DESCRIPTION="A utility to update Huddly camera firmware"
HOMEPAGE="https://chromium.googlesource.com/chromiumos/third_party/huddly-updater"
LICENSE="BSD-Google"
KEYWORDS="*"
IUSE="test"
COMMON_DEPEND="chromeos-base/libbrillo:=
chromeos-base/cfm-dfu-notification:=
dev-libs/msgpack:=
virtual/libusb:1
virtual/libudev:0=
"
DEPEND="${COMMON_DEPEND}
test? ( dev-cpp/gtest:= )
"
RDEPEND="${COMMON_DEPEND}
app-arch/unzip
"
src_configure() {
# See crbug/1078297
cros-debug-add-NDEBUG
default
}
src_test() {
if use amd64; then
emake tests
fi
}
src_install() {
dosbin huddly-updater
dosbin huddly-hpk-updater
udev_dorules conf/99-huddly.rules
}
pkg_preinst() {
enewuser cfm-firmware-updaters
enewgroup cfm-firmware-updaters
}