[90573] trunk/dports/python/py-pylibmc/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Mar 8 20:22:46 PST 2012


Revision: 90573
          http://trac.macports.org/changeset/90573
Author:   ryandesign at macports.org
Date:     2012-03-08 20:22:43 -0800 (Thu, 08 Mar 2012)
Log Message:
-----------
py-pylibmc: implementation of strndup is needed on 10.6 and earlier, not just on 10.6; fix build failure of stub by only adding the patchfile in the name != subport section

Modified Paths:
--------------
    trunk/dports/python/py-pylibmc/Portfile

Modified: trunk/dports/python/py-pylibmc/Portfile
===================================================================
--- trunk/dports/python/py-pylibmc/Portfile	2012-03-09 03:53:40 UTC (rev 90572)
+++ trunk/dports/python/py-pylibmc/Portfile	2012-03-09 04:22:43 UTC (rev 90573)
@@ -6,7 +6,7 @@
 
 name                py-pylibmc
 version             1.2.2
-revision            2
+revision            3
 categories          python
 license             BSD
 platforms           darwin
@@ -29,13 +29,14 @@
 python.versions     25 26 27
 python.default_version  27
 
-platform darwin 10 {
-    patchfiles      patch-pylibmcmodule.c.diff
-}
-
 if {$subport != $name} {
     depends_lib-append  port:libmemcached \
                         port:py${python.version}-distribute
+    
+    if {${os.platform} == "darwin" && ${os.major} <= 10} {
+        patchfiles-append patch-pylibmcmodule.c.diff
+    }
+    
     build.target        build_ext
     build.args          --with-libmemcached=${prefix}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120308/4f04c18c/attachment-0001.html>


More information about the macports-changes mailing list