Changeset 86256


Ignore:
Timestamp:
Oct 24, 2011, 1:18:00 AM (8 years ago)
Author:
adfernandes@…
Message:

py-mpi4py : better error checking (no errors thrown in body of port)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-mpi4py/Portfile

    r86244 r86256  
    99revision        2
    1010categories      python
    11 python.versions 25 26 27
    12 python.default_version 27
    1311description     MPI for Python - Python bindings for MPI
    1412long_description \
     
    3432platforms       darwin
    3533
     34python.versions 25 26 27
     35python.default_version 27
     36
    3637depends_lib-append port:openmpi
    3738build.args-append  "--mpicc=${prefix}/bin/openmpicc"
     
    4041universal_variant no
    4142
    42 if {  ${os.major} < 9 && [variant_isset mpich2] } {
    43     error "Mac OS 10.4 and earlier require openmpi"
    44 }
     43if { ${os.platform} != "darwin" || ${os.major} > 8 } {
    4544
    46 variant mpich2 description {builds with the mpich2 port} {
    47     depends_lib-append  port:mpich2
    48     depends_lib-delete  port:openmpi
    49     build.args-delete   "--mpicc=${prefix}/bin/openmpicc"
     45    variant mpich2 description {builds with the mpich2 port} {
     46        build.args-delete   "--mpicc=${prefix}/bin/openmpicc"
     47        depends_lib-delete  port:openmpi
     48        depends_lib-append  port:mpich2
     49    }
     50
    5051}
    5152
Note: See TracChangeset for help on using the changeset viewer.