blob: 22ae3998204b1ef6ba090ac9c29919b1de891846 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pytables/pytables-2.1.2.ebuild,v 1.5 2010/02/12 04:10:59 bicatali Exp $
EAPI=2
inherit eutils distutils
MYP="tables-${PV}"
DESCRIPTION="A package for managing hierarchical datasets built on top of the HDF5 library."
SRC_URI="http://www.pytables.org/download/stable/${MYP}.tar.gz"
HOMEPAGE="http://www.pytables.org/"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
LICENSE="BSD"
IUSE="doc examples"
DEPEND="sci-libs/hdf5
dev-python/numpy
dev-libs/lzo:2
app-arch/bzip2"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MYP}"
DOCS="ANNOUNCE.txt MIGRATING_TO_2.x.txt RELEASE_NOTES.txt THANKS"
src_prepare() {
epatch "${FILESDIR}"/${P}-failingtests.patch
epatch "${FILESDIR}"/${P}-no-old-num.patch
has_version sci-libs/hdf5[mpi] && export CC=mpicc
}
src_test() {
cd build/lib*
PYTHONPATH=. "${python}" tables/tests/test_all.py || die "tests failed"
}
src_install() {
distutils_src_install
insinto /usr/share/doc/${PF}
if use examples; then
doins -r examples || die
fi
if use doc; then
cd doc
dodoc text/* || die
doins -r usersguide.pdf scripts html || die
fi
}
|