[69931] trunk/dports/python/py-lint
dh at macports.org
dh at macports.org
Thu Jul 22 14:59:33 PDT 2010
Revision: 69931
http://trac.macports.org/changeset/69931
Author: dh at macports.org
Date: 2010-07-22 14:59:32 -0700 (Thu, 22 Jul 2010)
Log Message:
-----------
Patch to allow epylint to work
Modified Paths:
--------------
trunk/dports/python/py-lint/Portfile
Added Paths:
-----------
trunk/dports/python/py-lint/files/
trunk/dports/python/py-lint/files/patch-epylint.py.diff
Modified: trunk/dports/python/py-lint/Portfile
===================================================================
--- trunk/dports/python/py-lint/Portfile 2010-07-22 21:20:04 UTC (rev 69930)
+++ trunk/dports/python/py-lint/Portfile 2010-07-22 21:59:32 UTC (rev 69931)
@@ -6,6 +6,7 @@
name py-lint
version 0.21.1
+revision 1
categories-append devel
maintainers dh openmaintainer
description Error (and style) checking for python
@@ -20,19 +21,21 @@
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}
-livecheck.url http://ftp.logilab.org/pub/pylint/
-livecheck.type regex
-livecheck.regex {pylint-(\d+(?:\.\d+)*)\.tar\.gz}
-
checksums md5 70f82198cde208b9118e81a43f3c7d80 \
sha1 e71ba47c1a54839a44f618d7cce5bd716b1a4987 \
rmd160 04ec7d4c9b89dd9ff8f41bc453e20c5648b374ea
depends_lib port:py-logilab-astng port:py-logilab-common
+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/*] \
@@ -49,3 +52,6 @@
}
}
+livecheck.url http://ftp.logilab.org/pub/pylint/
+livecheck.type regex
+livecheck.regex {pylint-(\d+(?:\.\d+)*)\.tar\.gz}
Added: trunk/dports/python/py-lint/files/patch-epylint.py.diff
===================================================================
--- trunk/dports/python/py-lint/files/patch-epylint.py.diff (rev 0)
+++ trunk/dports/python/py-lint/files/patch-epylint.py.diff 2010-07-22 21:59:32 UTC (rev 69931)
@@ -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/17235975/attachment.html>
More information about the macports-changes
mailing list