aboutsummaryrefslogtreecommitdiff
blob: 3f1ceb3914813d0027d93c1e27612b53c2bf61e5 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

DESCRIPTION="Python interface to NCSA HDF4 library"
HOMEPAGE="http://pysclint.sourceforge.net/pycdf/ http://pypi.python.org/pypi/pyhdf"
SRC_URI="mirror://sourceforge/pysclint/${PN}/${PV}/${P}.tar.gz"

LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples szip"

RDEPEND="
	dev-python/numpy[${PYTHON_USEDEP}]
	sci-libs/hdf[szip=]"
DEPEND="${RDEPEND}
	dev-python/setuptools[${PYTHON_USEDEP}]"

python_compile() {
	use szip || export NOSZIP=1
	distutils-r1_python_compile
}

python_install_all() {
	distutils-r1_python_install_all

	dohtml doc/*.html
	dodoc CHANGES doc/*.txt

	if use examples; then
		insinto /usr/share/doc/${PF}
		doins -r examples
	fi
}