[51664] trunk/dports/science/hdf5/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat May 30 21:15:06 PDT 2009


Revision: 51664
          http://trac.macports.org/changeset/51664
Author:   ryandesign at macports.org
Date:     2009-05-30 21:15:06 -0700 (Sat, 30 May 2009)
Log Message:
-----------
hdf5: In the +fortran variant, don't issue an error outside of a phase

Modified Paths:
--------------
    trunk/dports/science/hdf5/Portfile

Modified: trunk/dports/science/hdf5/Portfile
===================================================================
--- trunk/dports/science/hdf5/Portfile	2009-05-31 04:14:07 UTC (rev 51663)
+++ trunk/dports/science/hdf5/Portfile	2009-05-31 04:15:06 UTC (rev 51664)
@@ -46,11 +46,12 @@
 # variant descriptions
 
 variant fortran description {Include the Fortran interface} {
-    if { [variant_isset gcc43] || [variant_isset gcc42] || [variant_isset g95] } {
-        configure.args-delete   --disable-fortran
-        configure.args-append   --enable-fortran
-    } else {
-        error "You must specify a compiler variant in order to build the Fortran interface"
+    configure.args-delete   --disable-fortran
+    configure.args-append   --enable-fortran
+    pre-fetch {
+        if { ![variant_isset gcc43] && ![variant_isset gcc42] && ![variant_isset g95] } {
+            error "You must specify a compiler variant in order to build the Fortran interface"
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090530/fc5cc321/attachment.html>


More information about the macports-changes mailing list