# 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}" if [[ ${PV} = *9999* ]]; then inherit git-r3 EGIT_REPO_URI="git://git.annexia.org/git/ocaml-libvirt.git" SRC_URI="" KEYWORDS="" SLOT="0" else if [[ ${PV} = "0.6.1.4_p1" ]]; then SRC_URI="http://git.annexia.org/?p=${PN}.git;a=snapshot;h=3169af3337938e18bf9ecc6ce936d644e14ff3de;sf=tgz -> ${PF}.tar.gz" S="${WORKDIR}/${PN}-master-3169af3" else SRC_URI="https://libvirt.org/sources/ocaml/${P}.tar.gz" fi SLOT="0/${PV}" KEYWORDS="~amd64" fi DESCRIPTION="OCaml bindings for the libvirt package" HOMEPAGE="https://libvirt.org/ocaml/" LICENSE="LGPL-2-with-linking-exception" DEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt]" RDEPEND="${DEPEND} \ app-emulation/libvirt" IUSE="+ocamlopt doc" DOCS="ChangeLog README TODO.libvirt" src_prepare() { default eautoreconf } src_compile() { emake all $(usex ocamlopt opt ) use doc && emake doc && HTML_DOCS="html/*" } src_install() { findlib_src_install install-$(usex ocamlopt opt byte) einstalldocs }