diff options
author | William Grzybowski <wg@FreeBSD.org> | 2013-11-13 21:28:29 +0000 |
---|---|---|
committer | William Grzybowski <wg@FreeBSD.org> | 2013-11-13 21:28:29 +0000 |
commit | 643a708b8207ff6cf1b5fa16a9b057fefeed89ef (patch) | |
tree | 2d3eef5ae52ec4f87fa81389b389fdc8c92713eb /science/py-h5py | |
parent | 46bc9f608b718e261beb50f8577beb1a8cb5325c (diff) | |
download | ports-643a708b8207ff6cf1b5fa16a9b057fefeed89ef.tar.gz ports-643a708b8207ff6cf1b5fa16a9b057fefeed89ef.zip |
Notes
Diffstat (limited to 'science/py-h5py')
-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', |