[77044] trunk/dports/python/py-logilab-astng

stromnov at macports.org stromnov at macports.org
Fri Mar 18 05:21:49 PDT 2011


Revision: 77044
          http://trac.macports.org/changeset/77044
Author:   stromnov at macports.org
Date:     2011-03-18 05:21:47 -0700 (Fri, 18 Mar 2011)
Log Message:
-----------
py-logilab-astng: add patch

Modified Paths:
--------------
    trunk/dports/python/py-logilab-astng/Portfile

Added Paths:
-----------
    trunk/dports/python/py-logilab-astng/files/
    trunk/dports/python/py-logilab-astng/files/patch-utils.py.diff

Modified: trunk/dports/python/py-logilab-astng/Portfile
===================================================================
--- trunk/dports/python/py-logilab-astng/Portfile	2011-03-18 11:45:50 UTC (rev 77043)
+++ trunk/dports/python/py-logilab-astng/Portfile	2011-03-18 12:21:47 UTC (rev 77044)
@@ -6,6 +6,7 @@
 
 name                py-logilab-astng
 version             0.21.1
+revision            1
 platforms           darwin
 
 maintainers         dh openmaintainer
@@ -25,6 +26,8 @@
                     sha1    b5c8324e46ab4634f046012a1052c4ad73b1c137 \
                     rmd160  63bb8d7f956d046661fe926415ae48e0f61b45b3
 
+patchfiles          patch-utils.py.diff
+
 depends_lib-append  port:py-logilab-common
 
 post-destroot {

Added: trunk/dports/python/py-logilab-astng/files/patch-utils.py.diff
===================================================================
--- trunk/dports/python/py-logilab-astng/files/patch-utils.py.diff	                        (rev 0)
+++ trunk/dports/python/py-logilab-astng/files/patch-utils.py.diff	2011-03-18 12:21:47 UTC (rev 77044)
@@ -0,0 +1,15 @@
+--- utils.py.orig	2011-01-11 17:47:31.000000000 +0300
++++ utils.py	2011-03-18 15:16:51.000000000 +0300
+@@ -140,8 +140,10 @@
+             raise ASTNGBuildingException
+         _check_children(child)
+ 
+-
+-from _ast import PyCF_ONLY_AST
++try:
++    from _ast import PyCF_ONLY_AST
++except ImportError:
++    PyCF_ONLY_AST = 1024
+ def parse(string):
+     return compile(string, "<string>", 'exec', PyCF_ONLY_AST)
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110318/0bbe8411/attachment.html>


More information about the macports-changes mailing list