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

inherit distutils

DESCRIPTION="A Python data processing framework."
HOMEPAGE="http://mdp-toolkit.sourceforge.net/index.html"

MY_P="${P/mdp/MDP}"
MY_P="${MY_P/_rc/RC}"
S="${WORKDIR}/${MY_P}"

SRC_URI="mirror://sourceforge/mdp-toolkit/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="virtual/python
	>=dev-lang/python-2.4
	( >=dev-python/numpy-1.1 ) || ( >=sci-libs/scipy-0.5.2 )"
RDEPEND="${DEPEND}"

src_test() {
	PYTHONPATH="${S}/src" "${python}" -c "import mdp;mdp.test()" || die "tests failed"
}