[27347] trunk/dports/lang/tcl/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Jul 30 07:47:32 PDT 2007


Revision: 27347
          http://trac.macosforge.org/projects/macports/changeset/27347
Author:   takanori at macports.org
Date:     2007-07-30 07:47:32 -0700 (Mon, 30 Jul 2007)

Log Message:
-----------
port:tcl fails to build if port:odcctools is installed.
This is a workaround for that problem. (Ticket #12360)

Modified Paths:
--------------
    trunk/dports/lang/tcl/Portfile

Modified: trunk/dports/lang/tcl/Portfile
===================================================================
--- trunk/dports/lang/tcl/Portfile	2007-07-30 14:44:29 UTC (rev 27346)
+++ trunk/dports/lang/tcl/Portfile	2007-07-30 14:47:32 UTC (rev 27347)
@@ -20,6 +20,15 @@
 worksrcdir      ${name}${version}/unix
 configure.args  --mandir=${prefix}/share/man
 
+post-patch {
+  # To avoid using odcctools' broken headers.
+  fs-traverse f ${worksrcpath} {
+    if [string match "*.c" ${f}] {
+      reinplace "s|<\\(mach-o/\[^>\]*\\)>|\"/usr/include/\\1\"|" ${f}
+    }
+  }
+}
+
 destroot.destdir  INSTALL_ROOT=${destroot}
 post-destroot {
   cd ${destroot}${prefix}/bin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070730/bc3c6342/attachment.html


More information about the macports-changes mailing list