# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-ml/obrowser/obrowser-1.1.1.ebuild,v 1.4 2012/10/10 12:43:55 aballier Exp $ EAPI=3 inherit findlib eutils DESCRIPTION="OCaml virtual machine written in Javascript, to run OCaml program in browsers" HOMEPAGE="http://ocsigen.org/obrowser/" SRC_URI="http://ocsigen.org/download/${P}.tar.gz" LICENSE="LGPL-2.1 GPL-3 WTFPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=dev-lang/ocaml-3.12.0 dev-ml/lwt" DEPEND="${RDEPEND} app-arch/sharutils" src_prepare() { has_version '>=dev-lang/ocaml-4' && epatch "${FILESDIR}/${P}-ocaml4.patch" } src_compile() { touch .check_version emake -j1 EXAMPLES_TARGETS="" || die } src_install() { findlib_src_preinst OCAMLPATH=${OCAMLFIND_DESTDIR} emake DESTDIR="${D}" install || die dodoc README.TXT || die }