2012-03-28 13:00:49 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2012-03-28 13:00:49 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-ml/sexplib/sexplib-7.0.4.ebuild,v 1.2 2012/03/27 21:08:38 aballier Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI=3
|
|
|
|
|
2012-03-28 13:00:49 +04:00
|
|
|
inherit oasis
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DESCRIPTION="Library for automated conversion of OCaml-values to and from S-expressions"
|
|
|
|
HOMEPAGE="http://forge.ocamlcore.org/projects/sexplib/"
|
|
|
|
SRC_URI="http://forge.ocamlcore.org/frs/download.php/699/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
2012-03-28 13:00:49 +04:00
|
|
|
IUSE="doc"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-03-28 13:00:49 +04:00
|
|
|
RDEPEND=">=dev-ml/type-conv-3.0.4"
|
2012-02-06 16:39:49 +04:00
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( virtual/latex-base dev-texlive/texlive-latexextra )"
|
|
|
|
|
2012-03-28 13:00:49 +04:00
|
|
|
DOCS=( "README.txt" "Changelog" )
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
src_compile() {
|
2012-03-28 13:00:49 +04:00
|
|
|
oasis_src_compile
|
2012-02-06 16:39:49 +04:00
|
|
|
if use doc ; then
|
|
|
|
cd "${S}/doc"
|
|
|
|
pdflatex README || die
|
|
|
|
pdflatex README || die
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-03-28 13:00:49 +04:00
|
|
|
oasis_src_install
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
if use doc; then
|
|
|
|
dodoc doc/README.pdf || die
|
|
|
|
fi
|
|
|
|
}
|