[108224] trunk/dports/science/netcdf/Portfile
Lawrence Velázquez
larryv at macports.org
Tue Jul 16 21:52:20 PDT 2013
On Jul 16, 2013, at 4:48 PM, takeshi at macports.org wrote:
> Revision: 108224
> https://trac.macports.org/changeset/108224
> Author: takeshi at macports.org
> Date: 2013-07-16 13:48:40 -0700 (Tue, 16 Jul 2013)
> Log Message:
> -----------
> netcdf: force using +openmpi when hdf5-18 +openmpi is installed, closing #39529
>
> Modified Paths:
> --------------
> trunk/dports/science/netcdf/Portfile
>
> Modified: trunk/dports/science/netcdf/Portfile
> ===================================================================
> --- trunk/dports/science/netcdf/Portfile 2013-07-16 20:46:30 UTC (rev 108223)
> +++ trunk/dports/science/netcdf/Portfile 2013-07-16 20:48:40 UTC (rev 108224)
> @@ -29,14 +29,12 @@
>
> patchfiles patch-configure.diff
>
> -pre-configure {
> - if {[variant_isset openmpi]} {
> - set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
> - if {${hdf5cc}!="openmpicc"} {
> - ui_error "Install hdf5-18 +openmpi"
> - return -code error "hdf5-18 +openmpi not installed"
> - }
> - }
> +set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
> +if {${hdf5cc}=="openmpicc"} {
> + default_variants +openmpi
> +} elseif {[variant_isset openmpi]} {
> + ui_error "Install hdf5-18 +openmpi"
> + return -code error "hdf5-18 +openmpi not installed"
> }
This Portfile now fails to parse if hdf5-18 is not installed.
% port -d sync
---> Updating the ports tree
DEBUG: Skipping file:///Users/larryv/Projects/MacPorts/users/larryv/dports
Synchronizing local ports tree from file:///Users/larryv/Projects/MacPorts/trunk/dports
DEBUG: /opt/local/bin/svn update --non-interactive /Users/larryv/Projects/MacPorts/trunk/dports
Updating '/Users/larryv/Projects/MacPorts/trunk/dports':
At revision 108250.
Creating port index in /Users/larryv/Projects/MacPorts/trunk/dports
Failed to parse file science/netcdf/Portfile: grep: /opt/local/lib/libhdf5.settings: No such file or directory
Total number of ports parsed: 1
Ports successfully parsed: 0
Ports failed: 1
Up-to-date ports skipped: 17361
%
vq
More information about the macports-dev
mailing list