blob: 1f8d23fd4d56e1179a81a5605749602db0bf34a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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.6 2013/03/10 10:53:19 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"
}
src_compile() {
touch .check_version
emake -j1 EXAMPLES_TARGETS=""
}
src_install() {
findlib_src_preinst
OCAMLPATH=${OCAMLFIND_DESTDIR} emake DESTDIR="${D}" install
dodoc README.TXT
}
|