summaryrefslogtreecommitdiff
path: root/math/py-pytables
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-pytables')
-rw-r--r--math/py-pytables/Makefile6
-rw-r--r--math/py-pytables/distinfo9
-rw-r--r--math/py-pytables/patches/patch-setup.py31
3 files changed, 40 insertions, 6 deletions
diff --git a/math/py-pytables/Makefile b/math/py-pytables/Makefile
index 329c044c1b9..9482ac7e6dc 100644
--- a/math/py-pytables/Makefile
+++ b/math/py-pytables/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.30 2014/01/21 16:32:42 wiz Exp $
+# $NetBSD: Makefile,v 1.31 2014/09/20 17:56:36 wiz Exp $
-DISTNAME= tables-3.0.0
+DISTNAME= tables-3.1.1
PKGNAME= ${PYPKGPREFIX}-py${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/}
@@ -14,6 +14,8 @@ PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5}
PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS}
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
+USE_LANGUAGES= c c++
+
.include "options.mk"
post-install:
diff --git a/math/py-pytables/distinfo b/math/py-pytables/distinfo
index bf40e961256..e5ecb368955 100644
--- a/math/py-pytables/distinfo
+++ b/math/py-pytables/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2014/01/21 16:32:42 wiz Exp $
+$NetBSD: distinfo,v 1.12 2014/09/20 17:56:36 wiz Exp $
-SHA1 (tables-3.0.0.tar.gz) = 0551bcb40cbb927efd74ba290a0ef4881dd18021
-RMD160 (tables-3.0.0.tar.gz) = d5a502f5d2e13d71a007aa988d8d9fc7af8cb812
-Size (tables-3.0.0.tar.gz) = 6191726 bytes
+SHA1 (tables-3.1.1.tar.gz) = c1ff909112b69b38b744cf81381496173c85c8af
+RMD160 (tables-3.1.1.tar.gz) = f4c4c68c931fe8d3c5817f2619e699bab6fc7f07
+Size (tables-3.1.1.tar.gz) = 6715786 bytes
+SHA1 (patch-setup.py) = a343bbf94ab7bcc46c81c5db7ca5a9afa85e306a
diff --git a/math/py-pytables/patches/patch-setup.py b/math/py-pytables/patches/patch-setup.py
new file mode 100644
index 00000000000..12c61e175f7
--- /dev/null
+++ b/math/py-pytables/patches/patch-setup.py
@@ -0,0 +1,31 @@
+$NetBSD: patch-setup.py,v 1.1 2014/09/20 17:56:36 wiz Exp $
+
+Fix build with cython-0.20++.
+
+--- setup.py.orig 2014-03-25 20:49:03.000000000 +0000
++++ setup.py
+@@ -122,21 +122,21 @@ if not has_setuptools:
+
+ # Check if Cython is installed or not (requisite)
+ try:
++ from Cython import __version__ as CythonVersion
+ from Cython.Distutils import build_ext
+- from Cython.Compiler.Main import Version
+ cmdclass['build_ext'] = build_ext
+ except ImportError:
+ exit_with_error(
+ "You need %(pkgname)s %(pkgver)s or greater to compile PyTables!"
+ % {'pkgname': 'Cython', 'pkgver': min_cython_version})
+
+-if Version.version < min_cython_version:
++if CythonVersion < min_cython_version:
+ exit_with_error(
+ "At least Cython %s is needed so as to generate extensions!"
+ % (min_cython_version))
+ else:
+ print("* Found %(pkgname)s %(pkgver)s package installed."
+- % {'pkgname': 'Cython', 'pkgver': Version.version})
++ % {'pkgname': 'Cython', 'pkgver': CythonVersion})
+
+ VERSION = open('VERSION').read().strip()
+