blob: c43f2d03980030b6c59b794999ee5199b493f46b (
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
39
40
41
42
43
44
45
46
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/cudf/cudf-0.7.ebuild,v 1.1 2014/10/24 08:34:07 aballier Exp $
EAPI=5
inherit multilib
DESCRIPTION="Library to parse, pretty print, and evaluate CUDF documents"
HOMEPAGE="http://www.mancoosi.org/cudf/"
SRC_URI="https://gforge.inria.fr/frs/download.php/file/33593/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+ocamlopt test"
RDEPEND="
>=dev-lang/ocaml-3.12:=[ocamlopt?]
dev-ml/extlib:=
dev-libs/glib:2
"
DEPEND="${RDEPEND}
test? ( dev-ml/ounit )
dev-ml/findlib
dev-lang/perl
"
src_compile() {
emake -j1 all
emake c-lib
if use ocamlopt ; then
emake -j1 opt
emake c-lib-opt
fi
}
src_test() {
emake test
emake c-lib-test
}
src_install() {
emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" install
dodoc BUGS ChangeLog README TODO
}
|