Date: Sun, 5 Jul 2015 08:27:03 +0000 (UTC) From: Wen Heping <wen@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r391350 - in head/devel/py-tables: . files Message-ID: <201507050827.t658R3eP064690@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wen Date: Sun Jul 5 08:27:02 2015 New Revision: 391350 URL: https://svnweb.freebsd.org/changeset/ports/391350 Log: - Update to 3.2.0 - Fix run error by add USES=fortran [1] - Strip shared library PR: 201348 [1] Submitted by: john@saltant.com [1] Modified: head/devel/py-tables/Makefile head/devel/py-tables/distinfo head/devel/py-tables/files/patch-setup.py Modified: head/devel/py-tables/Makefile ============================================================================== --- head/devel/py-tables/Makefile Sun Jul 5 08:24:40 2015 (r391349) +++ head/devel/py-tables/Makefile Sun Jul 5 08:27:02 2015 (r391350) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= tables -PORTVERSION= 3.1.1 -PORTREVISION= 2 +PORTVERSION= 3.2.0 CATEGORIES= devel python MASTER_SITES= SF/py${PORTNAME:tl}/py${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -23,22 +22,18 @@ LIB_DEPENDS= libhdf5.so:${PORTSDIR}/scie libucl.so:${PORTSDIR}/archivers/ucl RUN_DEPENDS:= ${BUILD_DEPENDS} -USES= python -USE_PYTHON= distutils +USES= fortran python +USE_PYTHON= distutils -PLIST_FILES= bin/pt2to3 bin/ptdump bin/ptrepack +PLIST_FILES= bin/pt2to3 bin/ptdump bin/ptrepack bin/pttree -OPTIONS_DEFINE= PYREX DOCS EXAMPLES -PYREX_DESC= Use code generated by Pyrex to build - -OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options +OPTIONS_DEFINE= PYREX DOCS EXAMPLES +PYREX_DESC= Use code generated by Pyrex to build +PYREX_BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex +OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MPYREX} -BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/Pyrex/__init__.py:${PORTSDIR}/devel/pyrex -.endif - post-patch: @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE}," ${WRKSRC}/setup.py @@ -52,7 +47,7 @@ post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/pytablesmanual-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR} ${ECHO} '${STAGEDIR}${DOCSDIR}/pytablesmanual-${PORTVERSION}.pdf' | ${SED} 's,^${STAGEDIR}${PREFIX}/,,' \ - >> ${TMPPLIST} + >> ${TMPPLIST} ${ECHO} '${STAGEDIR}${DOCSDIR}' | ${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' \ >> ${TMPPLIST} .endif @@ -66,4 +61,13 @@ post-install: ${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} .endif + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/_comp_bzip2.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/_comp_lzo.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/tableextension.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/hdf5extension.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/indexesextension.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/linkextension.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/utilsextension.so + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/tables/lrucacheextension.so + .include <bsd.port.mk> Modified: head/devel/py-tables/distinfo ============================================================================== --- head/devel/py-tables/distinfo Sun Jul 5 08:24:40 2015 (r391349) +++ head/devel/py-tables/distinfo Sun Jul 5 08:27:02 2015 (r391350) @@ -1,4 +1,4 @@ -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 +SHA256 (tables-3.2.0.tar.gz) = 60980e44676bfe463cdd2582ecdacc0b0763b259477015e866f8af72b4cdba44 +SIZE (tables-3.2.0.tar.gz) = 7039718 +SHA256 (pytablesmanual-3.2.0.pdf) = d92d8b008c63c2f3566eb9685103b0a6b891d2d353876a0868871dd436dbf69f +SIZE (pytablesmanual-3.2.0.pdf) = 2578022 Modified: head/devel/py-tables/files/patch-setup.py ============================================================================== --- head/devel/py-tables/files/patch-setup.py Sun Jul 5 08:24:40 2015 (r391349) +++ head/devel/py-tables/files/patch-setup.py Sun Jul 5 08:27:02 2015 (r391350) @@ -1,41 +1,6 @@ ---- 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 @@ +--- setup.py.orig 2015-07-05 14:52:30.439427615 +0800 ++++ setup.py 2015-07-05 14:53:35.680492890 +0800 +@@ -127,8 +127,8 @@ debug = '--debug' in sys.argv # Global variables @@ -46,12 +11,3 @@ optional_libs = [] data_files = [] # list of data files to add to packages (mainly for DLL's) -@@ -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?201507050827.t658R3eP064690>