blob: 5538b40596b7c22e7a37d888ca87873f5739be7a [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="c08d31a790b59af3327c7e42bb9c7fdf14aed152"
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="amd64 arm x86"
IUSE=""
RDEPEND=">=dev-embedded/libftdi-0.18
dev-libs/libusb
dev-python/numpy
dev-python/pyserial
dev-python/pyusb"
DEPEND="${RDEPEND}
app-text/htmltidy"
src_compile() {
tc-export CC PKG_CONFIG
emake || die
distutils_src_compile
}
src_install() {
emake DESTDIR="${D}" LIBDIR=/usr/$(get_libdir) install || die
# distutils takes care of installing servod, and doesn't like
# it when something else already installed it ...
rm -f "${D}"/usr/bin/servod
distutils_src_install
}