blob: 36bd3d67bffe4143c29255f11797f66a64d6a87c (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-2.1.ebuild,v 1.3 2009/02/18 17:49:18 patrick Exp $
EAPI="1"
NEED_PYTHON="2.2"
inherit distutils multilib
DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library."
SRC_URI="http://www.pytables.org/download/stable/tables-${PV}.tar.gz"
HOMEPAGE="http://www.pytables.org/"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
LICENSE="BSD"
IUSE="doc examples"
DEPEND=">=sci-libs/hdf5-1.6.5
>=dev-python/numpy-1.2.1
dev-libs/lzo:2
app-arch/bzip2"
RDEPEND="${DEPEND}"
S="${WORKDIR}/tables-${PV}"
src_install() {
cd "{S}"
DOCS="ANNOUNCE.txt MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS TODO.txt"
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
if use doc; then
cd doc
dohtml -r html/*
docinto text
dodoc text/*
insinto /usr/share/doc/${PF}
doins -r usersguide.pdf scripts/
fi
}
src_test() {
python_version
"${python}" setup.py install --root="${T}" --no-compile "$@" || die "temporary install failed"
PYTHONPATH="${T}/usr/$(get_libdir)/python${PYVER}/site-packages" "${python}" tables/tests/test_all.py || die "tests failed"
}
|