[78168] trunk/dports/graphics/ImageMagick/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Apr 27 05:38:23 PDT 2011


Revision: 78168
          http://trac.macports.org/changeset/78168
Author:   ryandesign at macports.org
Date:     2011-04-27 05:38:23 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
ImageMagick: make bad-port detection more generic so it can be re-used in other ports

Modified Paths:
--------------
    trunk/dports/graphics/ImageMagick/Portfile

Modified: trunk/dports/graphics/ImageMagick/Portfile
===================================================================
--- trunk/dports/graphics/ImageMagick/Portfile	2011-04-27 12:32:32 UTC (rev 78167)
+++ trunk/dports/graphics/ImageMagick/Portfile	2011-04-27 12:38:23 UTC (rev 78168)
@@ -78,10 +78,13 @@
                             lib/libxml2.dylib
 
 pre-configure {
-    if {[file exists ${prefix}/lib/libcl.dylib]} {
-        ui_error "ImageMagick cannot be built while cryptlib is active. Pleease deactivate"
-        ui_error "cryptlib and try again. You can reactivate cryptlib again later."
-        return -code error "cryptlib is installed"
+    foreach {badport badfile} "cryptlib ${prefix}/lib/libcl.dylib" {
+        if {[file exists ${badfile}]} {
+            ui_error "${name} cannot be built while ${badport} is active."
+            ui_error "Please deactivate ${badport} and try again."
+            ui_error "You can reactivate ${badport} again later."
+            return -code error "${badport} is installed"
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110427/7d85103a/attachment.html>


More information about the macports-changes mailing list