# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=3 PYTHON_DEPEND="2:2.5" inherit cmake-utils python DESCRIPTION="Daemon that controls how the Linux kernel will spend it's resources on the running processes" HOMEPAGE="https://github.com/poelzi/ulatencyd/" SRC_URI="https://github.com/downloads/poelzi/${PN}/${P}.tar.gz" LICENSE="" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc qt4" DEPEND="dev-libs/dbus-glib || ( dev-lang/lua dev-lang/luajit ) dev-lua/luaposix dev-python/dbus-python qt4? ( dev-python/PyQt4[dbus] ) " RDEPEND="${DEPEND}" src_prepare() { sed -i -e 's:${CMAKE_INSTALL_PREFIX}/man:${CMAKE_INSTALL_PREFIX}/share/man:g' \ docs/CMakeLists.txt \ || die "sed fix man page installation failed" if ! use doc; then sed -i -e '11,93 s:^:#:' \ docs/CMakeLists.txt \ || die "sed remove doc installation failed" fi } src_install() { cmake-utils_src_install newinitd ${FILESDIR}/ulatencyd.init ${PN} }