Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Oct 2014 17:00:57 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r369737 - in branches/2014Q4/devel/py-tables: . files
Message-ID:  <201410011700.s91H0vlj091735@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Wed Oct  1 17:00:56 2014
New Revision: 369737
URL: https://svnweb.freebsd.org/changeset/ports/369737
QAT: https://qat.redports.org/buildarchive/r369737/

Log:
  MFH: r369728
  
  - Update to 3.1.1
  - Fix build with cython-0.21

Modified:
  branches/2014Q4/devel/py-tables/Makefile
  branches/2014Q4/devel/py-tables/distinfo
  branches/2014Q4/devel/py-tables/files/patch-setup.py
Directory Properties:
  branches/2014Q4/   (props changed)

Modified: branches/2014Q4/devel/py-tables/Makefile
==============================================================================
--- branches/2014Q4/devel/py-tables/Makefile	Wed Oct  1 16:58:53 2014	(r369736)
+++ branches/2014Q4/devel/py-tables/Makefile	Wed Oct  1 17:00:56 2014	(r369737)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	tables
-PORTVERSION=	3.0.0
-PORTREVISION=	4
+PORTVERSION=	3.1.1
 CATEGORIES=	devel python
 MASTER_SITES=	SF/py${PORTNAME:tl}/py${PORTNAME}/${PORTVERSION}
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -23,8 +22,8 @@ LIB_DEPENDS=	libhdf5.so:${PORTSDIR}/scie
 		libucl.so:${PORTSDIR}/archivers/ucl
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USE_PYTHON=		yes
-USE_PYDISTUTILS=	yes
+USES=			python
+USE_PYTHON=		distutils
 
 PLIST_FILES=	bin/pt2to3 bin/ptdump bin/ptrepack
 

Modified: branches/2014Q4/devel/py-tables/distinfo
==============================================================================
--- branches/2014Q4/devel/py-tables/distinfo	Wed Oct  1 16:58:53 2014	(r369736)
+++ branches/2014Q4/devel/py-tables/distinfo	Wed Oct  1 17:00:56 2014	(r369737)
@@ -1,4 +1,4 @@
-SHA256 (tables-3.0.0.tar.gz) = 53532a59c8f03c3c5ef3c73c04f5bfd8384d6a3d508683cb87fc17af4c71dfe1
-SIZE (tables-3.0.0.tar.gz) = 6191726
-SHA256 (pytablesmanual-3.0.0.pdf) = 623cf4d64884c0c34996ac8d4208dd899450a96ddd64d1267c733da0a59a6ed6
-SIZE (pytablesmanual-3.0.0.pdf) = 2515096
+SHA256 (tables-3.1.1.tar.gz) = 39b9036376f1185599771c19276f13b5b9119d98f9108f58595745ded3fe2da3
+SIZE (tables-3.1.1.tar.gz) = 6715786
+SHA256 (pytablesmanual-3.1.1.pdf) = a21ca95e2386c503d4835686b69543e96c15ea85f305e1243a45de25959774fe
+SIZE (pytablesmanual-3.1.1.pdf) = 2527370

Modified: branches/2014Q4/devel/py-tables/files/patch-setup.py
==============================================================================
--- branches/2014Q4/devel/py-tables/files/patch-setup.py	Wed Oct  1 16:58:53 2014	(r369736)
+++ branches/2014Q4/devel/py-tables/files/patch-setup.py	Wed Oct  1 17:00:56 2014	(r369737)
@@ -1,29 +1,57 @@
---- setup.py.orig	2013-08-20 10:38:37.000000000 +0800
-+++ setup.py	2013-08-20 10:40:44.000000000 +0800
-@@ -133,8 +133,8 @@
+--- setup.py.orig	2014-03-26 04:49:03.000000000 +0800
++++ setup.py	2014-10-01 21:25:20.000000000 +0800
+@@ -25,6 +25,7 @@
+ from distutils.dep_util import newer
+ from distutils.util import convert_path
+ from distutils.ccompiler import new_compiler
++from distutils.version import LooseVersion
+ 
+ cmdclass = {}
+ setuptools_kwargs = {}
+@@ -122,21 +123,21 @@
+ 
+ # Check if Cython is installed or not (requisite)
+ try:
++    from Cython import __version__ as cython_version
+     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 LooseVersion(cython_version) < min_cython_version:
+     exit_with_error(
+-        "At least Cython %s is needed so as to generate extensions!"
+-        % (min_cython_version))
++        "You need %(pkgname)s %(pkgver)s or greater to run PyTables!"
++        % {'pkgname': 'Cython', 'pkgver': min_cython_version})
+ else:
+     print("* Found %(pkgname)s %(pkgver)s package installed."
+-          % {'pkgname': 'Cython', 'pkgver': Version.version})
++          % {'pkgname': 'Cython', 'pkgver': cython_version})
+ 
+ VERSION = open('VERSION').read().strip()
+ 
+@@ -145,8 +146,8 @@
  debug = '--debug' in sys.argv
  
  # Global variables
 -lib_dirs = []
--inc_dirs = ['blosc']
+-inc_dirs = ['c-blosc/hdf5']
 +lib_dirs = ['%%LOCALBASE%%/lib']
-+inc_dirs = ['blosc','%%LOCALBASE%%/include']
++inc_dirs = ['c-blosc/hdf5','%%LOCALBASE%%/include']
  optional_libs = []
  data_files = []    # list of data files to add to packages (mainly for DLL's)
  
-@@ -160,13 +160,13 @@
-     add_from_path("CPATH", default_header_dirs)
-     add_from_path("C_INCLUDE_PATH", default_header_dirs)
-     add_from_flags("CPPFLAGS", "-I", default_header_dirs)
--    default_header_dirs.extend(['/usr/include', '/usr/local/include'])
-+    default_header_dirs.extend(['/usr/include', '/usr/local/include','%%LOCALBASE%%/include'])
- 
-     default_library_dirs = []
-     add_from_flags("LDFLAGS", "-L", default_library_dirs)
-     default_library_dirs.extend(
-         os.path.join(_tree, _arch)
--        for _tree in ('/usr/local', '/sw', '/opt', '/opt/local', '/usr', '/')
-+        for _tree in ('/usr/local', '/sw', '/opt', '/opt/local', '/usr', '/','%%LOCALBASE%%')
-             for _arch in ('lib64', 'lib'))
-     default_runtime_dirs = default_library_dirs
+@@ -168,7 +169,7 @@
+             dirs.append(flag[len(flag_key):])
  
+ if os.name == 'posix':
+-    prefixes = ('/usr/local', '/sw', '/opt', '/opt/local', '/usr', '/')
++    prefixes = ('/usr/local', '/sw', '/opt', '/opt/local', '/usr', '/','%%LOCALBASE%%')
+ 
+     default_header_dirs = []
+     add_from_path("CPATH", default_header_dirs)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410011700.s91H0vlj091735>