# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 EAPI="2" inherit findlib eutils DESCRIPTION="Library for automated conversion of OCaml-values to and from S-expressions" HOMEPAGE="http://www.ocaml.info/home/ocaml_sources.html" SRC_URI="http://www.janestreet.com/ocaml/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="debug +ocamlopt" DEPEND=">=dev-lang/ocaml-3.11[ocamlopt?] dev-ml/type-conv" RDEPEND="${DEPEND}" S=${WORKDIR}/${PN} oasis_use_enable() { echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`" } src_configure() { chmod +x configure ./configure --prefix usr \ --libdir /usr/$(get_libdir) \ --destdir "${D}" \ $(oasis_use_enable debug debug) \ $(oasis_use_enable ocamlopt is_native) \ || die } src_install() { findlib_src_install dodoc README || die "doc install failed" }