2015-04-08 16:23:29 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-07-05 11:13:20 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-07-05 11:13:20 +04:00
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2015-04-08 16:23:29 +03:00
|
|
|
PYTHON_COMPAT=( python2_7 )
|
2013-07-05 11:13:20 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
MY_PN="netCDF4"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
DESCRIPTION="Python/numpy interface to netCDF"
|
2015-09-02 17:45:23 +03:00
|
|
|
HOMEPAGE="https://github.com/Unidata/netcdf4-python"
|
2013-07-05 11:13:20 +04:00
|
|
|
SRC_URI="https://netcdf4-python.googlecode.com/files/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
SLOT="0"
|
|
|
|
LICENSE="MIT"
|
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
|
|
IUSE="test"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
sci-libs/hdf5
|
2015-06-14 15:31:49 +03:00
|
|
|
sci-libs/netcdf:=[hdf]"
|
2014-07-07 10:31:30 +04:00
|
|
|
DEPEND="${RDEPEND}"
|
2013-07-05 11:13:20 +04:00
|
|
|
|
|
|
|
S="${WORKDIR}"/${MY_P}
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
cd test || die
|
|
|
|
${PYTHON} run_all.py || die
|
|
|
|
}
|