[76829] trunk/dports/lang/python25/Portfile

jmr at macports.org jmr at macports.org
Wed Mar 9 19:07:26 PST 2011


Revision: 76829
          http://trac.macports.org/changeset/76829
Author:   jmr at macports.org
Date:     2011-03-09 19:07:24 -0800 (Wed, 09 Mar 2011)
Log Message:
-----------
python25: consolidate darwin platform stuff

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

Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile	2011-03-10 02:35:45 UTC (rev 76828)
+++ trunk/dports/lang/python25/Portfile	2011-03-10 03:07:24 UTC (rev 76829)
@@ -143,6 +143,10 @@
       # See http://trac.macports.org/ticket/18376
       system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
    }
+   if {${os.major} >= 10} {
+    	configure.cppflags-append   -D_DARWIN_C_SOURCE
+        patchfiles-append           patch-pyconfig.h.in.diff
+   }
 }
 
 platform darwin 8 {
@@ -153,11 +157,6 @@
         configure.cppflags-append       -D__DARWIN_UNIX03
 }
 
-platform darwin 10 {
-        configure.cppflags-append   -D_DARWIN_C_SOURCE
-        patchfiles-append           patch-pyconfig.h.in.diff
-}
-
 platform puredarwin {
         patchfiles-append       patch-Modules-posixmodule.c.diff
         configure.args-delete   --enable-framework=${frameworks_dir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110309/a179fea3/attachment.html>


More information about the macports-changes mailing list