Revision: 87623 http://trac.macports.org/changeset/87623 Author: jeremyhu@macports.org Date: 2011-11-28 20:43:53 -0800 (Mon, 28 Nov 2011) Log Message: ----------- apple-gcc42: Bail out if libunwind-headers is installed Modified Paths: -------------- trunk/dports/lang/apple-gcc42/Portfile Modified: trunk/dports/lang/apple-gcc42/Portfile =================================================================== --- trunk/dports/lang/apple-gcc42/Portfile 2011-11-29 02:29:07 UTC (rev 87622) +++ trunk/dports/lang/apple-gcc42/Portfile 2011-11-29 04:43:53 UTC (rev 87623) @@ -117,6 +117,17 @@ } } +pre-build { + foreach {badport badfile} "libunwind-headers ${prefix}/include/unwind.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" + } + } +} + # TODO: Use MacPorts dependencies build.env \ LIBRARY_PATH="/usr/lib" \