blob: fe48ef06f5344e9741debfc6a5034b24e619d22a [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=2
CROS_WORKON_COMMIT="77629acea6e9eafde3935c59295832aa1f182280"
CROS_WORKON_TREE="9d5c1921016f7e8bf0c15d6352bad28abebd72b5"
CROS_WORKON_PROJECT="chromiumos/third_party/hdctools"
SUPPORT_PYTHON_ABIS="1"
inherit cros-workon distutils toolchain-funcs multilib
DESCRIPTION="Software to communicate with servo/miniservo debug boards"
HOMEPAGE=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE="cros_host"
RDEPEND=">=dev-embedded/libftdi-0.18
dev-libs/libusb
dev-python/numpy
dev-python/pexpect
dev-python/pyserial
dev-python/pyusb"
DEPEND="${RDEPEND}
app-text/htmltidy"
src_configure() {
cros-workon_src_configure
}
src_compile() {
tc-export CC PKG_CONFIG
local makeargs=( $(usex cros_host '' EXTRA_DIRS=chromeos) )
emake "${makeargs[@]}" || die
distutils_src_compile
}
src_install() {
local makeargs=(
$(usex cros_host '' EXTRA_DIRS=chromeos)
DESTDIR="${D}" LIBDIR=/usr/$(get_libdir)
install
)
emake "${makeargs[@]}" || die
distutils_src_install
}