[69932] trunk/dports/python/py25-lint

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


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

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

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

Modified: trunk/dports/python/py25-lint/Portfile
===================================================================
--- trunk/dports/python/py25-lint/Portfile	2010-07-22 21:59:32 UTC (rev 69931)
+++ trunk/dports/python/py25-lint/Portfile	2010-07-22 22:00:01 UTC (rev 69932)
@@ -6,6 +6,7 @@
 
 name                py25-lint
 version             0.21.1
+revision            1
 categories-append   devel
 maintainers         dh openmaintainer
 description         Error (and style) checking for python
@@ -20,7 +21,7 @@
 platforms           darwin
 
 homepage            http://www.logilab.org/projects/pylint/
-master_sites        ftp://ftp.logilab.org/pub/pylint/
+master_sites        http://ftp.logilab.org/pub/pylint/
 distname            pylint-${version}
 
 checksums           md5     70f82198cde208b9118e81a43f3c7d80 \
@@ -29,12 +30,20 @@
 
 depends_lib         port:py25-logilab-common port:py25-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/*] \
         ${destroot}${prefix}/share/doc/${name}
     xinstall -m 644 -W ${worksrcpath} ChangeLog README \
         ${destroot}${prefix}/share/doc/${name}
+
+    # this file is also installed by py25-logilab-common
     file delete ${destroot}${python.pkgd}/logilab/__init__.py
 
     # there is no python.prefix variable for python25 and python24 portgroups

Added: trunk/dports/python/py25-lint/files/patch-epylint.py.diff
===================================================================
--- trunk/dports/python/py25-lint/files/patch-epylint.py.diff	                        (rev 0)
+++ trunk/dports/python/py25-lint/files/patch-epylint.py.diff	2010-07-22 22:00:01 UTC (rev 69932)
@@ -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/ffa662e0/attachment.html>


More information about the macports-changes mailing list