[80157] trunk/dports/editors/scite/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Jul 5 09:49:12 PDT 2011


Revision: 80157
          http://trac.macports.org/changeset/80157
Author:   ryandesign at macports.org
Date:     2011-07-05 09:49:12 -0700 (Tue, 05 Jul 2011)
Log Message:
-----------
scite: avoid build error when tidy is active (#28230)

Modified Paths:
--------------
    trunk/dports/editors/scite/Portfile

Modified: trunk/dports/editors/scite/Portfile
===================================================================
--- trunk/dports/editors/scite/Portfile	2011-07-05 16:47:39 UTC (rev 80156)
+++ trunk/dports/editors/scite/Portfile	2011-07-05 16:49:12 UTC (rev 80157)
@@ -41,6 +41,15 @@
 use_parallel_build  yes
 
 pre-build {
+    foreach {badport badfile} "tidy ${prefix}/include/platform.h" {
+        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"
+        }
+    }
+
     if {[variant_isset universal]} {
         set lipo_args {}
         set sysrootflags ""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110705/050fefcc/attachment.html>


More information about the macports-changes mailing list