[55822] trunk/dports/lang/python26/Portfile

blb at macports.org blb at macports.org
Wed Aug 19 16:34:14 PDT 2009


Revision: 55822
          http://trac.macports.org/changeset/55822
Author:   blb at macports.org
Date:     2009-08-19 16:34:12 -0700 (Wed, 19 Aug 2009)
Log Message:
-----------
lang/python26 - make sure to reinplace use of arch command only on 10.5 or later; ticket #20734

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

Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile	2009-08-19 22:53:44 UTC (rev 55821)
+++ trunk/dports/lang/python26/Portfile	2009-08-19 23:34:12 UTC (rev 55822)
@@ -150,9 +150,11 @@
       reinplace \
          "s|UNIVERSAL_ARCH_FLAGS=\".*\"|UNIVERSAL_ARCH_FLAGS=\"${universal_arch_flags}\"|" \
          ${worksrcpath}/configure
-      reinplace \
-         "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \
-         ${worksrcpath}/configure
+      if {${os.major} >= 9} {
+         reinplace \
+            "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \
+            ${worksrcpath}/configure
+      }
    }
    if {[info exists universal_sysroot]} {
       configure.args-append   --enable-universalsdk=${universal_sysroot}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090819/46f056f7/attachment.html>


More information about the macports-changes mailing list