| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/pandas/pandas-0.8.1.ebuild,v 1.3 2012/10/18 04:43:34 patrick Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
# python cruft
|
| 8 |
SUPPORT_PYTHON_ABIS="1"
|
| 9 |
DISTUTILS_SRC_TEST="nosetests"
|
| 10 |
RESTRICT_PYTHON_ABIS="2.4 2.7-pypy-* *-jython 3.3"
|
| 11 |
|
| 12 |
inherit distutils
|
| 13 |
|
| 14 |
DESCRIPTION="Powerful data structures for data analysis and statistics"
|
| 15 |
HOMEPAGE="http://pandas.sourceforge.net/"
|
| 16 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
| 17 |
|
| 18 |
LICENSE="BSD"
|
| 19 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 20 |
SLOT="0"
|
| 21 |
IUSE="doc examples excel R"
|
| 22 |
|
| 23 |
CDEPEND="dev-python/numpy
|
| 24 |
>=dev-python/python-dateutil-2.1"
|
| 25 |
DEPEND="${CDEPEND}
|
| 26 |
doc? (
|
| 27 |
dev-python/ipython
|
| 28 |
dev-python/rpy
|
| 29 |
dev-python/sphinx
|
| 30 |
sci-libs/scikits_statsmodels
|
| 31 |
)"
|
| 32 |
RDEPEND="${CDEPEND}
|
| 33 |
dev-python/matplotlib
|
| 34 |
dev-python/pytables
|
| 35 |
dev-python/pytz
|
| 36 |
sci-libs/scipy
|
| 37 |
excel? (
|
| 38 |
dev-python/openpyxl
|
| 39 |
dev-python/xlrd
|
| 40 |
dev-python/xlwt
|
| 41 |
)
|
| 42 |
R? ( dev-python/rpy )"
|
| 43 |
|
| 44 |
src_compile() {
|
| 45 |
distutils_src_compile
|
| 46 |
if use doc; then
|
| 47 |
cd doc
|
| 48 |
"$(PYTHON -f)" make.py html || die
|
| 49 |
fi
|
| 50 |
}
|
| 51 |
|
| 52 |
src_test() {
|
| 53 |
testing() {
|
| 54 |
cd "${S}/build-${PYTHON_ABI}"/lib*
|
| 55 |
PYTHONPATH=. nosetests-"${PYTHON_ABI}" pandas
|
| 56 |
}
|
| 57 |
python_execute_function testing
|
| 58 |
}
|
| 59 |
|
| 60 |
src_install() {
|
| 61 |
distutils_src_install
|
| 62 |
use doc && dohtml -r doc/build/html
|
| 63 |
if use examples; then
|
| 64 |
insinto /usr/share/doc/${PF}
|
| 65 |
doins -r examples
|
| 66 |
fi
|
| 67 |
}
|