blob: 248be4ff1e298cbb6637cb99048caa61e004e5a6 (
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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ounit/ounit-1.1.0.ebuild,v 1.4 2011/01/13 22:16:36 ranger Exp $
EAPI="2"
inherit findlib multilib
DESCRIPTION="Unit testing framework for OCaml"
HOMEPAGE="http://ounit.forge.ocamlcore.org/"
SRC_URI="https://forge.ocamlcore.org/frs/download.php/495/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ppc x86"
DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]"
RDEPEND="${DEPEND}"
IUSE="debug doc +ocamlopt"
oasis_use_enable() {
echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`"
}
src_configure() {
chmod +x configure
./configure --prefix usr \
--libdir /usr/$(get_libdir) \
--docdir /usr/share/doc/${PF}/html \
--destdir "${D}" \
$(oasis_use_enable debug debug) \
$(oasis_use_enable ocamlopt is_native) \
|| die
}
src_compile() {
emake || die
if use doc ; then
emake doc || die
fi
}
src_install() {
findlib_src_install
# install documentation
dodoc README* AUTHORS* changelog || die
}
|