Revision: 148955 https://trac.macports.org/changeset/148955 Author: mmoll@macports.org Date: 2016-05-23 11:04:08 -0700 (Mon, 23 May 2016) Log Message: ----------- hdf5-18: rename h5pfc instead of h5fc when an mpi variant is set. closes #51465 Modified Paths: -------------- trunk/dports/science/hdf5-18/Portfile Modified: trunk/dports/science/hdf5-18/Portfile =================================================================== --- trunk/dports/science/hdf5-18/Portfile 2016-05-23 17:58:16 UTC (rev 148954) +++ trunk/dports/science/hdf5-18/Portfile 2016-05-23 18:04:08 UTC (rev 148955) @@ -92,12 +92,15 @@ file rename ${destroot}${prefix}/share/hdf5_examples ${destroot}${prefix}/share/${name} if {[mpi_variant_isset]} { file rename ${destroot}${prefix}/bin/h5pcc ${destroot}${prefix}/bin/h5pcc-18 + if {[variant_isset fortran]} { + file rename ${destroot}${prefix}/bin/h5pfc ${destroot}${prefix}/bin/h5pfc-18 + } } else { file rename ${destroot}${prefix}/bin/h5cc ${destroot}${prefix}/bin/h5cc-18 + if {[variant_isset fortran]} { + file rename ${destroot}${prefix}/bin/h5fc ${destroot}${prefix}/bin/h5fc-18 + } } - if {[variant_isset fortran]} { - file rename ${destroot}${prefix}/bin/h5fc ${destroot}${prefix}/bin/h5fc-18 - } } pre-activate {