# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils multilib DESCRIPTION="Minimal Xml parser and printer for OCaml" HOMEPAGE="http://tech.motion-twin.com/xmllight.html" SRC_URI="http://tech.motion-twin.com/zip/${P}.zip" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="doc" DEPEND="dev-lang/ocaml" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}" src_compile() { make || die # Will fail in 1st run ... FIXME } src_install() { dodir /usr/$(get_libdir)/ocaml emake INSTALLDIR="${D}"/usr/$(get_libdir)/ocaml install || die dodoc README if use doc; then dohtml doc/* fi }