blob: 3ecd60cd0a6544f797cb0881b652003f047d9639 (
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
47
48
49
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlzip/camlzip-1.03-r1.ebuild,v 1.4 2008/04/06 19:30:39 maekke Exp $
inherit findlib eutils
EAPI="1"
IUSE="+ocamlopt"
DESCRIPTION="Compressed file access ML library (ZIP, GZIP and JAR)"
HOMEPAGE="http://cristal.inria.fr/~xleroy/software.html#camlzip"
SRC_URI="http://caml.inria.fr/distrib/bazar-ocaml/${P}.tar.gz"
SLOT="1"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64 ppc x86"
DEPEND=">=dev-lang/ocaml-3.04 \
>=sys-libs/zlib-1.1.3"
pkg_setup() {
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-Makefile-findlib.patch"
sed -e "s/VERSION/${PV}/" "${FILESDIR}/META" >> META
}
src_compile() {
emake all || die "Failed at compilation step !!!"
if use ocamlopt; then
emake allopt || die "Failed at ML compilation step !!!"
fi
}
src_install() {
findlib_src_install
dodoc README
}
|