# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils findlib DESCRIPTION="OCaml library which reads and writes data in the JSON format" HOMEPAGE="http://martin.jambon.free.fr/json-wheel.html" SRC_URI="http://martin.jambon.free.fr/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+ocamlopt" DEPEND=">=dev-lang/ocaml-3.10[ocamlopt?] >=dev-ml/ocamlnet-2.2.9" RDEPEND="${DEPEND}" src_compile() { emake all -j1|| die "make failed" if use ocamlopt; then emake opt -j1|| die "make failed" fi } src_install() { dodir /usr/bin findlib_src_install BINDIR="${D}/usr/bin" }