[100640] trunk/dports/math/slepc/Portfile

mmoll at macports.org mmoll at macports.org
Tue Dec 18 07:45:35 PST 2012


Revision: 100640
          https://trac.macports.org/changeset/100640
Author:   mmoll at macports.org
Date:     2012-12-18 07:45:34 -0800 (Tue, 18 Dec 2012)
Log Message:
-----------
math/slepc: better error handling

Modified Paths:
--------------
    trunk/dports/math/slepc/Portfile

Modified: trunk/dports/math/slepc/Portfile
===================================================================
--- trunk/dports/math/slepc/Portfile	2012-12-18 14:37:40 UTC (rev 100639)
+++ trunk/dports/math/slepc/Portfile	2012-12-18 15:45:34 UTC (rev 100640)
@@ -42,7 +42,7 @@
 variant arpack description {compile with ARPACK support} {
     pre-fetch {
         if {![file exists ${prefix}/lib/libparpack.a]} {
-            ui_error "Please install the openmpi or mpich2 variant of arpack first."
+            return -code error "Please install the openmpi or mpich2 variant of arpack first."
         }
     }
     # This is a rather fragile way to figure out where the fortran library can be
@@ -55,7 +55,9 @@
         }
     }
     if {${fortrandir} == ""} {
-        ui_error "Please install a fortran compiler by installing one of the following ports:\n\tgcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
+        ui_error "Install a fortran compiler by installing one of these ports:"
+        ui_error "gcc42, gcc43, gcc44, gcc45, gcc46, gcc47, gcc48, or g95."
+        return -code error "No fortran compiler installed"
     }
     depends_lib-append      port:arpack
     configure.args-append   --with-arpack-dir=${fortrandir} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121218/9174681c/attachment-0001.html>


More information about the macports-changes mailing list