blob: 4d726262e1581acab524eaefd282f745d96060eb (
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
37
38
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/sexplib/sexplib-4.2.13.ebuild,v 1.1 2009/09/19 12:33:03 aballier Exp $
EAPI="2"
inherit findlib
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://ocaml.info/ocaml_sources/${PN}310-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
S=${WORKDIR}/${PN}310-${PV}/lib
DEPEND=">=dev-lang/ocaml-3.10[ocamlopt]
dev-ml/type-conv"
RDEPEND="${DEPEND}"
src_compile() {
emake -j1 || die
}
src_test() {
cd "${S}/../lib_test"
emake -j1 || die
./conv_test || die
./sexp_test < test.sexp || die
}
src_install() {
findlib_src_preinst
emake install || die "make install failed"
dodoc ../README.txt ../Changelog
}
|