Revision: 124736 https://trac.macports.org/changeset/124736 Author: takeshi@macports.org Date: 2014-08-27 13:33:01 -0700 (Wed, 27 Aug 2014) Log Message: ----------- hdfeos, hdfeos5: corrected the use of active_variants as in its doc in the source Modified Paths: -------------- trunk/dports/science/hdfeos/Portfile trunk/dports/science/hdfeos5/Portfile Modified: trunk/dports/science/hdfeos/Portfile =================================================================== --- trunk/dports/science/hdfeos/Portfile 2014-08-27 19:54:45 UTC (rev 124735) +++ trunk/dports/science/hdfeos/Portfile 2014-08-27 20:33:01 UTC (rev 124736) @@ -39,8 +39,8 @@ ${destroot}${prefix}/include } -pre-configure { - if {[active_variants port:hdf4 szip]} { +if {![catch {set result [active_variants port:hdf4 szip]}]} { + if {$result} { default_variants-append +szip } } Modified: trunk/dports/science/hdfeos5/Portfile =================================================================== --- trunk/dports/science/hdfeos5/Portfile 2014-08-27 19:54:45 UTC (rev 124735) +++ trunk/dports/science/hdfeos5/Portfile 2014-08-27 20:33:01 UTC (rev 124736) @@ -44,8 +44,8 @@ } else { set h5cc h5cc } -pre-configure { - if {[active_variants port:hdf5 szip]} { +if {![catch {set result [active_variants port:hdf5 szip]}]} { + if {$result} { default_variants-append +szip } }
participants (1)
-
takeshi@macports.org