You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ml/dose3/dose3-3.3_beta2-r2.ebuild

55 lines
1.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/dose3/dose3-3.3_beta2-r2.ebuild,v 1.2 2014/10/30 16:20:37 aballier Exp $
EAPI=5
MY_P="${P/_beta/-beta}"
DESCRIPTION="Library and a collection of tools to perform la large spectrum of analysis on package repositories"
HOMEPAGE="http://dose.gforge.inria.fr/public_html/"
SRC_URI="https://gforge.inria.fr/frs/download.php/file/34180/${MY_P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt +parmap zip bzip2 xml curl rpm4"
RDEPEND="
>=dev-lang/ocaml-3.12:=[ocamlopt?]
dev-ml/cudf:=
dev-ml/extlib:=
dev-ml/ocaml-re:=
parmap? ( dev-ml/parmap:= )
zip? ( dev-ml/camlzip:= )
bzip2? ( dev-ml/camlbz2:= )
>=dev-ml/ocamlgraph-1.8.5:=
xml? ( dev-ml/ocaml-expat:= dev-ml/xml-light:= )
curl? ( dev-ml/ocurl:= )
rpm4? ( app-arch/rpm )
"
DEPEND="${RDEPEND}
dev-ml/findlib
"
S="${WORKDIR}/${MY_P}"
src_prepare() {
sed -e 's/INSTALLOPTS=-s/INSTALLOPTS=/' -i Makefile.config.in || die
}
src_configure() {
econf \
$(use ocamlopt || echo "--with-bytecodeonly") \
$(use parmap && echo "--with-parmap") \
$(use zip && echo "--with-zip") \
$(use bzip2 && echo "--with-bz2") \
--with-ocamlgraph \
$(use xml && echo "--with-xml") \
$(use curl && echo "--with-curl") \
$(use rpm4 && echo "--with-rpm4")
}
src_compile() {
emake -j1
}