# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit findlib eutils autotools S="${WORKDIR}/${P}" SRC_URI="https://people.redhat.com/rjones/virt-top/files/${P}.tar.gz" SLOT="0/${PV}" KEYWORDS="~amd64" DESCRIPTION="A top-like utility for showing stats of virtualized domains" HOMEPAGE="https://people.redhat.com/rjones/virt-top" LICENSE="LGPL-2.1" RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt] \ dev-ml/ocaml-curses \ dev-ml/ocaml-libvirt \ xml? ( dev-ml/xml-light ) \ csv? ( dev-ml/csv dev-ml/ocaml-gettext ) \ calendar? ( dev-ml/calendar )" DEPEND="${RDEPEND} \ doc? ( dev-lang/perl )" IUSE="+ocamlopt doc +xml +csv +calendar" DOCS="ChangeLog HACKING README virt-top/virt-top.1" PATCHES="${FILESDIR}/${PN}-warn-errors.patch" src_prepare() { default eautoreconf } src_compile() { emake $(usex ocamlopt opt all ) use doc && DOCS+=" virt-top/virt-top.txt" } src_install() { findlib_src_install einstalldocs }