[69933] trunk/dports/python/py26-lint

dh at macports.org dh at macports.org
Thu Jul 22 15:00:28 PDT 2010


Revision: 69933
          http://trac.macports.org/changeset/69933
Author:   dh at macports.org
Date:     2010-07-22 15:00:28 -0700 (Thu, 22 Jul 2010)
Log Message:
-----------
Patch to allow epylint to work

Modified Paths:
--------------
    trunk/dports/python/py26-lint/Portfile

Added Paths:
-----------
    trunk/dports/python/py26-lint/files/
    trunk/dports/python/py26-lint/files/patch-epylint.py.diff

Modified: trunk/dports/python/py26-lint/Portfile
===================================================================
--- trunk/dports/python/py26-lint/Portfile	2010-07-22 22:00:01 UTC (rev 69932)
+++ trunk/dports/python/py26-lint/Portfile	2010-07-22 22:00:28 UTC (rev 69933)
@@ -6,6 +6,7 @@
 
 name                py26-lint
 version             0.21.1
+revision            1
 categories-append   devel
 maintainers         dh openmaintainer
 description         Error (and style) checking for python
@@ -29,6 +30,12 @@
 
 depends_lib         port:py26-logilab-common port:py26-logilab-astng
 
+patchfiles          patch-epylint.py.diff
+
+post-patch {
+    reinplace "s|@@MPORTS_PYTHON_BRANCH@@|${python.branch}|" ${worksrcpath}/epylint.py
+}
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \

Added: trunk/dports/python/py26-lint/files/patch-epylint.py.diff
===================================================================
--- trunk/dports/python/py26-lint/files/patch-epylint.py.diff	                        (rev 0)
+++ trunk/dports/python/py26-lint/files/patch-epylint.py.diff	2010-07-22 22:00:28 UTC (rev 69933)
@@ -0,0 +1,11 @@
+--- epylint.py	2010-06-05 02:19:46.000000000 +1200
++++ epylint.py.new	2010-07-23 09:25:07.000000000 +1200
+@@ -58,7 +58,7 @@
+         parentPath = os.path.dirname(parentPath)
+ 
+     # Start pylint
+-    process = Popen("pylint -f parseable -r n --disable=C,R,I '%s'" %
++    process = Popen("pylint-@@MPORTS_PYTHON_BRANCH@@ -f parseable -r n --disable=C,R,I '%s'" %
+                     childPath, shell=True, stdout=PIPE, stderr=PIPE,
+                     cwd=parentPath)
+     p = process.stdout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100722/beb74a86/attachment-0001.html>


More information about the macports-changes mailing list