summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-07-04 16:06:06 +0000
committerJustin Lecher <jlec@gentoo.org>2013-07-04 16:06:06 +0000
commitcca0d5e68ec4aa387d45711a57d0015344614ab1 (patch)
tree53615f25557f56a6f212f000800c9a2c9dc9542f /dev-python/netcdf4-python
parentdev-python/netcdf4-python: New addition written by me (diff)
downloadgentoo-2-cca0d5e68ec4aa387d45711a57d0015344614ab1.tar.gz
gentoo-2-cca0d5e68ec4aa387d45711a57d0015344614ab1.tar.bz2
gentoo-2-cca0d5e68ec4aa387d45711a57d0015344614ab1.zip
dev-python/netcdf4-python: Add missing dep on sci-libs/hdf5; Fix USEDEP; implement tests
(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'dev-python/netcdf4-python')
-rw-r--r--dev-python/netcdf4-python/ChangeLog5
-rw-r--r--dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild16
2 files changed, 16 insertions, 5 deletions
diff --git a/dev-python/netcdf4-python/ChangeLog b/dev-python/netcdf4-python/ChangeLog
index bcceb657d188..d3180bc2cfec 100644
--- a/dev-python/netcdf4-python/ChangeLog
+++ b/dev-python/netcdf4-python/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-python/netcdf4-python
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/netcdf4-python/ChangeLog,v 1.1 2013/07/04 15:57:45 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/netcdf4-python/ChangeLog,v 1.2 2013/07/04 16:06:06 jlec Exp $
+
+ 04 Jul 2013; Justin Lecher <jlec@gentoo.org> netcdf4-python-1.0.4.ebuild:
+ Add missing dep on sci-libs/hdf5; Fix USEDEP; implement tests
*netcdf4-python-1.0.4 (04 Jul 2013)
diff --git a/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild b/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild
index 4a21ad232cc5..75dcca39c0b1 100644
--- a/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild
+++ b/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild,v 1.1 2013/07/04 15:57:45 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/netcdf4-python/netcdf4-python-1.0.4.ebuild,v 1.2 2013/07/04 16:06:06 jlec Exp $
EAPI=5
@@ -18,9 +18,17 @@ SRC_URI="https://netcdf4-python.googlecode.com/files/${MY_P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="test"
-RDEPEND="sci-libs/netcdf"
-DEPEND="${RDEPEND}"
+RDEPEND="
+ sci-libs/hdf5
+ sci-libs/netcdf[hdf]"
+DEPEND="${RDEPEND}
+ test? ( virtual/python-unittest2 )"
S="${WORKDIR}"/${MY_P}
+
+python_test() {
+ cd test || die
+ ${PYTHON} run_all.py || die
+}