[76830] trunk/dports/lang

jmr at macports.org jmr at macports.org
Wed Mar 9 19:24:57 PST 2011


Revision: 76830
          http://trac.macports.org/changeset/76830
Author:   jmr at macports.org
Date:     2011-03-09 19:24:55 -0800 (Wed, 09 Mar 2011)
Log Message:
-----------
python24, python25, python26, python27, python31: remove obsolete ncurses cppflags, and don't assume that libSystemStubs is present

Modified Paths:
--------------
    trunk/dports/lang/python24/Portfile
    trunk/dports/lang/python25/Portfile
    trunk/dports/lang/python26/Portfile
    trunk/dports/lang/python27/Portfile
    trunk/dports/lang/python31/Portfile

Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
+++ trunk/dports/lang/python24/Portfile	2011-03-10 03:24:55 UTC (rev 76830)
@@ -165,6 +165,9 @@
 							patch-pymactoolbox.diff
 		}
     }
+    if {![file exists /usr/lib/libSystemStubs.a]} {
+    	reinplace s/-lSystemStubs//g ${worksrcpath}/configure
+    }
 }
 
 platform puredarwin {

Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
+++ trunk/dports/lang/python25/Portfile	2011-03-10 03:24:55 UTC (rev 76830)
@@ -46,8 +46,6 @@
                         --enable-ipv6 \
                         --with-cxx=${configure.cxx}
 
-configure.cppflags-append -I${prefix}/include/ncurses
-
 post-patch {
         reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py \
                 ${worksrcpath}/setup.py
@@ -147,6 +145,11 @@
     	configure.cppflags-append   -D_DARWIN_C_SOURCE
         patchfiles-append           patch-pyconfig.h.in.diff
    }
+   post-patch {
+		if {![file exists /usr/lib/libSystemStubs.a]} {
+			reinplace s/-lSystemStubs//g ${worksrcpath}/configure
+		}
+   }
 }
 
 platform darwin 8 {

Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
+++ trunk/dports/lang/python26/Portfile	2011-03-10 03:24:55 UTC (rev 76830)
@@ -58,8 +58,6 @@
                         --enable-ipv6
 configure.ccache        no
 
-configure.cppflags-append -I${prefix}/include/ncurses
-
 post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Lib/cgi.py \
       ${worksrcpath}/Lib/ctypes/macholib/dyld.py
@@ -138,6 +136,11 @@
       # See http://trac.macports.org/ticket/18376
       system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
    }
+   post-patch {
+		if {![file exists /usr/lib/libSystemStubs.a]} {
+			reinplace s/-lSystemStubs//g ${worksrcpath}/configure
+		}
+   }
 }
 
 variant universal {

Modified: trunk/dports/lang/python27/Portfile
===================================================================
--- trunk/dports/lang/python27/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
+++ trunk/dports/lang/python27/Portfile	2011-03-10 03:24:55 UTC (rev 76830)
@@ -70,8 +70,6 @@
 
 configure.ccache    no
 
-configure.cppflags-append -I${prefix}/include/ncurses
-
 post-patch {
     reinplace "s|@@PREFIX@@|${prefix}|g" \
         ${worksrcpath}/Lib/cgi.py \
@@ -145,6 +143,11 @@
         # See http://trac.macports.org/ticket/18376
         system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
     }
+    post-patch {
+		if {![file exists /usr/lib/libSystemStubs.a]} {
+			reinplace s/-lSystemStubs//g ${worksrcpath}/configure
+		}
+    }
 }
 
 variant universal {

Modified: trunk/dports/lang/python31/Portfile
===================================================================
--- trunk/dports/lang/python31/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
+++ trunk/dports/lang/python31/Portfile	2011-03-10 03:24:55 UTC (rev 76830)
@@ -47,8 +47,6 @@
                         --with-computed-gotos
 configure.ccache        no
 
-configure.cppflags-append -I${prefix}/include/ncurses
-
 use_parallel_build      yes
 
 post-patch {
@@ -128,6 +126,11 @@
       # See http://trac.macports.org/ticket/18376
       system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
    }
+   post-patch {
+		if {![file exists /usr/lib/libSystemStubs.a]} {
+			reinplace s/-lSystemStubs//g ${worksrcpath}/configure
+		}
+   }
 }
 
 variant universal {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110309/8865239f/attachment.html>


More information about the macports-changes mailing list