# Copyright 1999-2013 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.7 2013/08/19 20:54:42 aballier Exp $ EAPI=5 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/${PV}" 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" has_version '>=dev-lang/ocaml-4.01_beta' && epatch "${FILESDIR}/${P}-ocaml41.patch" } src_compile() { touch .check_version emake -j1 EXAMPLES_TARGETS="" } src_install() { findlib_src_preinst OCAMLPATH=${OCAMLFIND_DESTDIR} emake DESTDIR="${D}" install dodoc README.TXT }