# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit findlib eutils DESCRIPTION="Ocaml implementation of `expect` to help building unitary testing" HOMEPAGE="http://forge.ocamlcore.org/projects/ocaml-expect/" SRC_URI="http://forge.ocamlcore.org/frs/download.php/475/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="test" RDEPEND=" dev-lang/ocaml dev-ml/extlib dev-ml/findlib dev-ml/pcre-ocaml dev-ml/ounit" DEPEND=${RDEPEND} src_compile() { ocaml setup.ml -configure --bindir ${D}/usr/bin --libdir ${D}/`ocamlc -where` || die "configure failed" ocaml setup.ml -build || die "build failed" } src_install() { if use "test"; then ocaml setup.ml -test || die "test failed" fi findlib_src_preinst ocaml setup.ml -install || die "install failed" dodoc README.txt }