[78170] trunk/dports/devel/nodejs/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Apr 27 05:40:19 PDT 2011


Revision: 78170
          http://trac.macports.org/changeset/78170
Author:   ryandesign at macports.org
Date:     2011-04-27 05:40:19 -0700 (Wed, 27 Apr 2011)
Log Message:
-----------
nodejs: prevent installation if libev is active; it would fail (see #28562)

Modified Paths:
--------------
    trunk/dports/devel/nodejs/Portfile

Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2011-04-27 12:38:57 UTC (rev 78169)
+++ trunk/dports/devel/nodejs/Portfile	2011-04-27 12:40:19 UTC (rev 78170)
@@ -29,6 +29,17 @@
 patchfiles              patch-Makefile-python.diff \
                         patch-platform.diff
 
+pre-configure {
+    foreach {badport badfile} "libev ${prefix}/include/ev.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"
+        }
+    }
+}
+
 configure.args          --without-ssl
 
 variant ssl description {Add secure socket layer support} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110427/51c643c3/attachment.html>


More information about the macports-changes mailing list