aboutsummaryrefslogtreecommitdiff
blob: 79aaa5ec281ca4b27583cba8463821ae66420618 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

MY_PN="MLPY"
MY_P=${MY_PN}-${PV}
DESCRIPTION="Machine Learning PYthon (mlpy) is a high-performance Python library for predictive modeling"
HOMEPAGE="https://mlpy.fbk.eu/"
SRC_URI="https://mlpy.fbk.eu/download/src/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
RDEPEND=">=sci-libs/gsl-1.8
	>=dev-python/numpy-1.1
	>=virtual/python-2.5"
DEPEND="${RDEPEND}
	doc? ( dev-python/sphinx )"
S=${WORKDIR}/${MY_P}

src_install() {
	distutils_src_install
	if use doc; then
		pushd docs 2>/dev/null || die
		emake html || die
		dohtml -r build/html/*
		popd 2>/dev/null || die
	fi
}