diff options
author | wg <wg@FreeBSD.org> | 2013-11-14 05:28:29 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-11-14 05:28:29 +0800 |
commit | 4f66e28f87db3af4bbff0cbee78ab997344edbd9 (patch) | |
tree | 2d3eef5ae52ec4f87fa81389b389fdc8c92713eb | |
parent | 800d254e4dc63bad512048e661e864dfa425ab69 (diff) | |
download | freebsd-ports-gnome-4f66e28f87db3af4bbff0cbee78ab997344edbd9.tar.gz freebsd-ports-gnome-4f66e28f87db3af4bbff0cbee78ab997344edbd9.tar.zst freebsd-ports-gnome-4f66e28f87db3af4bbff0cbee78ab997344edbd9.zip |
science/py-h5py: update to 2.2.0
- Update to 2.2.0
- Add LICENSE (BSD)
- Add DOCS
- Pass maintainership to submitter
PR: ports/183519
Submitted by: Johannes Jost Meixner <xmj chaot.net>
Approved by: maintainer (timeout, 2 weeks, 3 times)
-rw-r--r-- | science/py-h5py/Makefile | 15 | ||||
-rw-r--r-- | science/py-h5py/distinfo | 4 | ||||
-rw-r--r-- | science/py-h5py/files/patch-setup.py | 23 |
3 files changed, 27 insertions, 15 deletions
diff --git a/science/py-h5py/Makefile b/science/py-h5py/Makefile index d0a1d92af4f1..d6881c5de55b 100644 --- a/science/py-h5py/Makefile +++ b/science/py-h5py/Makefile @@ -2,26 +2,37 @@ # $FreeBSD$ PORTNAME= h5py -PORTVERSION= 2.1.1 +PORTVERSION= 2.2.0 CATEGORIES= science python MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= fmysh@iijmio-mail.jp +MAINTAINER= xmj@chaot.net COMMENT= General-purpose Python interface to the HDF5 library +LICENSE= BSD + BUILD_DEPENDS= ${PYNUMPY} RUN_DEPENDS= ${PYNUMPY} LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5-18 USE_PYTHON= yes USE_PYDISTUTILS= yes + PYDISTUTILS_AUTOPLIST= yes +PORTDOCS= README.rst + +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${WRKSRC}/setup.py +post-install: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + regression-test: build @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test diff --git a/science/py-h5py/distinfo b/science/py-h5py/distinfo index fa16966225bd..38b6f8b18d03 100644 --- a/science/py-h5py/distinfo +++ b/science/py-h5py/distinfo @@ -1,2 +1,2 @@ -SHA256 (h5py-2.1.1.tar.gz) = 6e4f135268436cda1dc19a081dc5384d431057344fa1121a886016cd8c89c716 -SIZE (h5py-2.1.1.tar.gz) = 984939 +SHA256 (h5py-2.2.0.tar.gz) = 021c63a57a5ae231e3d60333634d1ae0fd4adaede2f918d6a699d38246dbd8a2 +SIZE (h5py-2.2.0.tar.gz) = 975911 diff --git a/science/py-h5py/files/patch-setup.py b/science/py-h5py/files/patch-setup.py index eca2f7f6aa7e..f28953eb0430 100644 --- a/science/py-h5py/files/patch-setup.py +++ b/science/py-h5py/files/patch-setup.py @@ -1,12 +1,13 @@ ---- ./setup.py.orig 2013-10-29 15:50:15.741120947 +0200 -+++ ./setup.py 2013-10-29 15:51:01.621119992 +0200 -@@ -68,6 +68,9 @@ - elif sys.platform == 'darwin': - COMPILER_SETTINGS['include_dirs'] += ['/opt/local/include'] - COMPILER_SETTINGS['library_dirs'] += ['/opt/local/lib'] -+ elif sys.platform.startswith('freebsd'): -+ COMPILER_SETTINGS['include_dirs'] += ['%%LOCALBASE%%/include'] -+ COMPILER_SETTINGS['library_dirs'] += ['%%LOCALBASE%%/lib'] +--- ./setup.py.orig 2013-09-04 02:32:03.000000000 +0300 ++++ ./setup.py 2013-10-30 23:46:03.668134592 +0200 +@@ -136,8 +136,8 @@ + COMPILER_SETTINGS['include_dirs'] += ['/usr/local/include'] # homebrew + COMPILER_SETTINGS['library_dirs'] += ['/usr/local/lib'] # homebrew + elif sys.platform.startswith('freebsd'): +- COMPILER_SETTINGS['include_dirs'] += ['/usr/local/include'] # homebrew +- COMPILER_SETTINGS['library_dirs'] += ['/usr/local/lib'] # homebrew ++ COMPILER_SETTINGS['include_dirs'] += ['%%LOCALBASE%%/include'] # homebrew ++ COMPILER_SETTINGS['library_dirs'] += ['%%LOCALBASE%%/lib'] # homebrew + if MPI: + COMPILER_SETTINGS['include_dirs'] += [mpi4py.get_include()] COMPILER_SETTINGS['runtime_library_dirs'] = [op.abspath(x) for x in COMPILER_SETTINGS['library_dirs']] - - MODULES = ['defs','_errors','_objects','_proxy', 'h5fd', 'h5z', |