[98467] trunk/dports/devel/gdb/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Oct 5 16:53:52 PDT 2012


Revision: 98467
          http://trac.macports.org//changeset/98467
Author:   ryandesign at macports.org
Date:     2012-10-05 16:53:52 -0700 (Fri, 05 Oct 2012)
Log Message:
-----------
gdb: use conflicts_build instead of doing it manually

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

Modified: trunk/dports/devel/gdb/Portfile
===================================================================
--- trunk/dports/devel/gdb/Portfile	2012-10-05 21:48:41 UTC (rev 98466)
+++ trunk/dports/devel/gdb/Portfile	2012-10-05 23:53:52 UTC (rev 98467)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       conflicts_build 1.0
 PortGroup       muniversal 1.0
 
 name            gdb
@@ -38,6 +39,8 @@
 
 depends_build   port:gettext
 
+conflicts_build cctools-headers
+
 if {${configure.build_arch} == "ppc" || ${configure.build_arch} == "ppc64"} {
     notes "${name} does not support building on ${configure.build_arch}."
     pre-fetch {
@@ -46,13 +49,6 @@
     }
 }
 
-pre-configure {
-    if {[file exists ${prefix}/include/mach-o/loader.h]} {
-        ui_error "cctools-headers must be deactivated before upgrade." 
-        error "Please run `sudo port deactivate cctools-headers` and try again." 
-    }
-}
-
 configure.args-append \
     --infodir=${prefix}/share/info \
     --mandir=${prefix}/share/man \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121005/514c56d3/attachment.html>


More information about the macports-changes mailing list