[124736] trunk/dports/science
takeshi at macports.org
takeshi at macports.org
Wed Aug 27 13:33:01 PDT 2014
Revision: 124736
https://trac.macports.org/changeset/124736
Author: takeshi at 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
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140827/7ed70cf7/attachment-0001.html>
More information about the macports-changes
mailing list