mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
40 lines
802 B
Bash
40 lines
802 B
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI="5"
|
|
|
|
inherit findlib eutils
|
|
|
|
IUSE="+ocamlopt"
|
|
|
|
DESCRIPTION="Compressed file access ML library (ZIP, GZIP and JAR)"
|
|
HOMEPAGE="http://forge.ocamlcore.org/projects/camlzip/"
|
|
SRC_URI="http://forge.ocamlcore.org/frs/download.php/1037/${P}.tar.gz"
|
|
|
|
SLOT="1/${PV}"
|
|
LICENSE="LGPL-2.1"
|
|
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
|
|
|
RDEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
|
|
>=sys-libs/zlib-1.1.3"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_prepare() {
|
|
has_version '>=dev-lang/ocaml-4.03.0_beta1' && epatch "${FILESDIR}/ocaml-4.03.patch"
|
|
}
|
|
|
|
src_compile() {
|
|
emake all
|
|
if use ocamlopt; then
|
|
emake allopt
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
findlib_src_preinst
|
|
emake DESTDIR="${D}" install-findlib
|
|
|
|
dodoc README Changes
|
|
}
|