Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+13 -8
View File
@@ -1,18 +1,24 @@
# $NetBSD: Makefile,v 1.31 2014/09/20 17:56:36 wiz Exp $
# $NetBSD: Makefile,v 1.35 2016/08/28 15:48:33 wiz Exp $
DISTNAME= tables-3.1.1
DISTNAME= tables-3.2.3
PKGNAME= ${PYPKGPREFIX}-py${DISTNAME}
PKGREVISION= 1
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pytables/}
MASTER_SITES= ${MASTER_SITE_GITHUB:=PyTables/}
GITHUB_PROJECT= PyTables
GITHUB_TAG= v.${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.pytables.org/
COMMENT= Database package for large amounts of data
LICENSE= modified-bsd
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
PYSETUPBUILDARGS+= --hdf5=${BUILDLINK_PREFIX.hdf5}
PYSETUPINSTALLARGS= ${PYSETUPBUILDARGS}
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
DEPENDS+= ${PYPKGPREFIX}-numexpr>=2.0:../../math/py-numexpr
USE_LANGUAGES= c c++
@@ -22,7 +28,8 @@ post-install:
cd ${DESTDIR}${PREFIX}/bin && \
mv pt2to3 pt2to3${PYVERSSUFFIX} && \
mv ptdump ptdump${PYVERSSUFFIX} && \
mv ptrepack ptrepack${PYVERSSUFFIX}
mv ptrepack ptrepack${PYVERSSUFFIX} && \
mv pttree pttree${PYVERSSUFFIX}
do-test:
(cd ${WRKSRC}/tables/tests && ${PYTHONBIN} test_all.py)
@@ -32,8 +39,6 @@ do-test:
.include "../../devel/zlib/buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../math/py-numpy/buildlink3.mk"
BUILDLINK_API_DEPENDS.pycython+= ${PYPKGPREFIX}-cython>=0.13
BUILDLINK_API_DEPENDS.pycython+= ${PYPKGPREFIX}-cython>=0.21
.include "../../devel/py-cython/buildlink3.mk"
BUILDLINK_API_DEPENDS.pynumexpr+= ${PYPKGPREFIX}-numexpr>=2.0
.include "../../math/py-numexpr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+18 -2
View File
@@ -1,8 +1,15 @@
@comment $NetBSD: PLIST,v 1.11 2014/01/21 16:32:42 wiz Exp $
@comment $NetBSD: PLIST,v 1.14 2016/08/18 20:30:02 wiz Exp $
bin/pt2to3${PYVERSSUFFIX}
bin/ptdump${PYVERSSUFFIX}
bin/ptrepack${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}
bin/pttree${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}/PKG-INFO
${PYSITELIB}/${EGG_FILE}/SOURCES.txt
${PYSITELIB}/${EGG_FILE}/dependency_links.txt
${PYSITELIB}/${EGG_FILE}/entry_points.txt
${PYSITELIB}/${EGG_FILE}/not-zip-safe
${PYSITELIB}/${EGG_FILE}/requires.txt
${PYSITELIB}/${EGG_FILE}/top_level.txt
${PYSITELIB}/tables/__init__.py
${PYSITELIB}/tables/__init__.pyc
${PYSITELIB}/tables/__init__.pyo
@@ -132,6 +139,9 @@ ${PYSITELIB}/tables/scripts/ptdump.pyo
${PYSITELIB}/tables/scripts/ptrepack.py
${PYSITELIB}/tables/scripts/ptrepack.pyc
${PYSITELIB}/tables/scripts/ptrepack.pyo
${PYSITELIB}/tables/scripts/pttree.py
${PYSITELIB}/tables/scripts/pttree.pyc
${PYSITELIB}/tables/scripts/pttree.pyo
${PYSITELIB}/tables/table.py
${PYSITELIB}/tables/table.pyc
${PYSITELIB}/tables/table.pyo
@@ -150,6 +160,7 @@ ${PYSITELIB}/tables/tests/__init__.pyo
${PYSITELIB}/tables/tests/array_mdatom.h5
${PYSITELIB}/tables/tests/attr-u16.h5
${PYSITELIB}/tables/tests/blosc_bigendian.h5
${PYSITELIB}/tables/tests/bug-idx.h5
${PYSITELIB}/tables/tests/check_leaks.py
${PYSITELIB}/tables/tests/check_leaks.pyc
${PYSITELIB}/tables/tests/check_leaks.pyo
@@ -167,6 +178,8 @@ ${PYSITELIB}/tables/tests/float.h5
${PYSITELIB}/tables/tests/idx-std-1.x.h5
${PYSITELIB}/tables/tests/indexes_2_0.h5
${PYSITELIB}/tables/tests/indexes_2_1.h5
${PYSITELIB}/tables/tests/issue_368.h5
${PYSITELIB}/tables/tests/issue_560.h5
${PYSITELIB}/tables/tests/matlab_file.mat
${PYSITELIB}/tables/tests/nested-type-with-gaps.h5
${PYSITELIB}/tables/tests/non-chunked-table.h5
@@ -194,6 +207,9 @@ ${PYSITELIB}/tables/tests/test_array.pyo
${PYSITELIB}/tables/tests/test_attributes.py
${PYSITELIB}/tables/tests/test_attributes.pyc
${PYSITELIB}/tables/tests/test_attributes.pyo
${PYSITELIB}/tables/tests/test_aux.py
${PYSITELIB}/tables/tests/test_aux.pyc
${PYSITELIB}/tables/tests/test_aux.pyo
${PYSITELIB}/tables/tests/test_backcompat.py
${PYSITELIB}/tables/tests/test_backcompat.pyc
${PYSITELIB}/tables/tests/test_backcompat.pyo
+7 -5
View File
@@ -1,6 +1,8 @@
$NetBSD: distinfo,v 1.12 2014/09/20 17:56:36 wiz Exp $
$NetBSD: distinfo,v 1.15 2016/08/18 20:30:02 wiz Exp $
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
SHA1 (tables-3.2.3.tar.gz) = d7a2965821f436aabcf97e2851fe857c40e71cca
RMD160 (tables-3.2.3.tar.gz) = b0eaa61390a65d4e23f0499ca64409c20fd23bae
SHA512 (tables-3.2.3.tar.gz) = 565ae648a81daa6e9eb7d8dfbecef4f0b195122dd2c60a99f89f903f7366515997c302e649441f68b20c13b0f7ccff1e97971cc16b4bd56b579a069d92247e9a
Size (tables-3.2.3.tar.gz) = 3821258 bytes
SHA1 (patch-c-blosc_blosc_blosc.c) = 53751c1242e9d2e3057bb1eef0f075f2fdd97c3f
SHA1 (patch-setup.py) = 51e92744674fbc8b64e3dc150fcf9927efebc821
@@ -0,0 +1,16 @@
$NetBSD: patch-c-blosc_blosc_blosc.c,v 1.1 2016/08/16 02:42:48 maya Exp $
Workaround NetBSD-7.99.35 missing C11 includes and having C11 support
PR standards/51416
--- c-blosc/blosc/blosc.c.orig 2016-07-03 11:46:48.000000000 +0000
+++ c-blosc/blosc/blosc.c
@@ -59,7 +59,7 @@
#endif
/* If C11 is supported, use it's built-in aligned allocation. */
-#if __STDC_VERSION__ >= 201112L
+#if 0
#include <stdalign.h>
#endif
+23 -26
View File
@@ -1,31 +1,28 @@
$NetBSD: patch-setup.py,v 1.1 2014/09/20 17:56:36 wiz Exp $
$NetBSD: patch-setup.py,v 1.3 2016/08/18 20:30:02 wiz Exp $
Fix build with cython-0.20++.
--- setup.py.orig 2014-03-25 20:49:03.000000000 +0000
--- setup.py.orig 2016-07-03 11:46:48.000000000 +0000
+++ setup.py
@@ -122,21 +122,21 @@ if not has_setuptools:
@@ -793,23 +793,6 @@ if 'BLOSC' not in optional_libs:
finally:
os.remove(fd.name)
# 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))
- # Detection code for SSE2/AVX2 only works for gcc/clang, not for MSVC yet
- # SSE2
- if ('sse2' in cpu_info['flags'] and
- compiler_has_flags(compiler, ["-msse2"])):
- print('SSE2 detected')
- CFLAGS.append('-DSHUFFLE_SSE2_ENABLED')
- CFLAGS.append('-msse2')
- blosc_sources += [f for f in glob.glob('c-blosc/blosc/*.c')
- if 'sse2' in f]
- # AVX2
- if ('avx2' in cpu_info['flags'] and
- compiler_has_flags(compiler, ["-mavx2"])):
- print('AVX2 detected')
- CFLAGS.append('-DSHUFFLE_AVX2_ENABLED')
- CFLAGS.append('-mavx2')
- blosc_sources += [f for f in glob.glob('c-blosc/blosc/*.c')
- if 'avx2' in f]
else:
print("* Found %(pkgname)s %(pkgver)s package installed."
- % {'pkgname': 'Cython', 'pkgver': Version.version})
+ % {'pkgname': 'Cython', 'pkgver': CythonVersion})
VERSION = open('VERSION').read().strip()
ADDLIBS += ['blosc']