[147762] trunk/dports/python/py-h5py/Portfile

eborisch at macports.org eborisch at macports.org
Fri Apr 15 06:28:19 PDT 2016


Revision: 147762
          https://trac.macports.org/changeset/147762
Author:   eborisch at macports.org
Date:     2016-04-15 06:28:19 -0700 (Fri, 15 Apr 2016)
Log Message:
-----------
py-h5py: Update to 2.6.0. Closes #51122.

Modified Paths:
--------------
    trunk/dports/python/py-h5py/Portfile

Modified: trunk/dports/python/py-h5py/Portfile
===================================================================
--- trunk/dports/python/py-h5py/Portfile	2016-04-15 02:37:46 UTC (rev 147761)
+++ trunk/dports/python/py-h5py/Portfile	2016-04-15 13:28:19 UTC (rev 147762)
@@ -1,20 +1,21 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem          1.0
-PortGroup           python 1.0
-PortGroup           mpi 1.0
+PortSystem              1.0
+PortGroup               github 1.0
+PortGroup               python 1.0
+PortGroup               mpi 1.0
 
-name                py-h5py
-version             2.5.0
-revision            3
+github.setup            h5py h5py 2.6.0
+name                    py-h5py
+revision                0
 # h5py needs to be re-built after hdf5 upgrades
 
-platforms           darwin
-license             BSD
-maintainers         eborisch openmaintainer
+platforms               darwin
+license                 BSD
+maintainers             eborisch openmaintainer
 
-description         Read and write HDF5 files from Python
+description             Read and write HDF5 files from Python
 
 long_description  \
     The h5py package provides both a high- and low-level interface to the \
@@ -26,35 +27,38 @@
     datatypes and data structures and their HDF5 equivalents vastly \
     simplifies the process of reading and writing data from Python.
 
-homepage            http://www.h5py.org
-master_sites        https://pypi.python.org/packages/source/h/h5py
-distname            h5py-${version}
+homepage                http://www.h5py.org
 
-checksums \
-    rmd160  94484badd1103c00421582a055b7b0f3368ad653 \
-    sha256  9833df8a679e108b561670b245bcf9f3a827b10ccb3a5fa1341523852cfac2f6
-
 # Support for -devel
 set DEV_VERSION     0
 
-subport             py26-h5py-devel {set DEV_VERSION 26}
-subport             py27-h5py-devel {set DEV_VERSION 27}
-subport             py33-h5py-devel {set DEV_VERSION 33}
-subport             py34-h5py-devel {set DEV_VERSION 34}
+subport                 py26-h5py-devel {set DEV_VERSION 26}
+subport                 py27-h5py-devel {set DEV_VERSION 27}
+subport                 py33-h5py-devel {set DEV_VERSION 33}
+subport                 py34-h5py-devel {set DEV_VERSION 34}
+subport                 py35-h5py-devel {set DEV_VERSION 35}
 
 python.versions     26 27 33 34 35
 
 if {${DEV_VERSION}} {
-    python.version      ${DEV_VERSION}
-    # epoch was already set to a date; continuing with that approach
-    epoch               20150122
-    version             2.5.0
-    conflicts           py${python.version}-h5py
     checksums \
-        rmd160  94484badd1103c00421582a055b7b0f3368ad653 \
-        sha256  9833df8a679e108b561670b245bcf9f3a827b10ccb3a5fa1341523852cfac2f6
+        rmd160  937ec9ac2cfc290025ebdada30f35a021cb12efc \
+        sha256  b2872862d1d5afd3d34fc831a5feae394516683996c22f73c3eccc5fcd4cdb89
+} else {
+    checksums \
+        rmd160  f9a975c3a4fdac3f06cae38e8b5bcc565d90a61a \
+        sha256  62bf69569d685f4eda7fbbcfb1be76dd769e593058f5f0f466434b7240127c42
+}
+
+if {${DEV_VERSION}} {
+    python.version          ${DEV_VERSION}
+    # epoch was already set to a date; continuing with that approach
+    epoch                   20160412
+    github.setup            h5py h5py 8e58fa6
+    name                    py${python.version}-h5py-devel
+    conflicts               py${python.version}-h5py
 } elseif {${name} ne ${subport}} {
-    conflicts           py${python.version}-h5py-devel
+    conflicts               py${python.version}-h5py-devel
 }
 
 python.default_version 27
@@ -68,11 +72,6 @@
                             port:hdf5
 
 
-    # TODO: set compiler appropriately to build against parallel HDF5 
-    # (even when MPI variant not requested), ticket #45911
-    #configure.cc mpicc
-    #configure.cc h5pcc
-
     post-destroot {
         system -W ${destroot}${prefix} "mkdir -p share/doc/${subport}"
         copy ${worksrcpath}/lzf/LICENSE.txt \
@@ -82,19 +81,16 @@
     # Add MPI support
     mpi.setup
     if {[mpi_variant_isset]} {
-        depends_lib-append  port:py${python.version}-mpi4py
-        mpi.enforce_variant hdf5 \
-                            py${python.version}-mpi4py
+        build.env-append        DISTUTILS_DEBUG=1
+        depends_lib-append      port:py${python.version}-mpi4py
+        mpi.enforce_variant     hdf5 \
+                                py${python.version}-mpi4py
 
-        use_configure   yes
-        configure.cmd   ${build.cmd} configure
-        configure.args  --mpi
+        use_configure           yes
+        configure.cmd           ${build.cmd} configure
+        configure.args          --mpi
         configure.pre_args
     }
 
-    livecheck.type      none
-} else {
-    livecheck.type      regex
-    livecheck.url       https://pypi.python.org/pypi/h5py
-    livecheck.regex     {h5py/(\d+(?:\.\d+)*)}
+    livecheck.type          none
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160415/32a0577f/attachment.html>


More information about the macports-changes mailing list