Revision: 74568 http://trac.macports.org/changeset/74568 Author: ricci@macports.org Date: 2010-12-21 16:21:05 -0800 (Tue, 21 Dec 2010) Log Message: ----------- new ports - python 2.7 versions of logilab's pylint and its dependencies Added Paths: ----------- trunk/dports/python/py27-lint/ trunk/dports/python/py27-lint/Portfile trunk/dports/python/py27-lint/files/ trunk/dports/python/py27-lint/files/patch-epylint.py.diff trunk/dports/python/py27-logilab-astng/ trunk/dports/python/py27-logilab-astng/Portfile trunk/dports/python/py27-logilab-common/ trunk/dports/python/py27-logilab-common/Portfile Added: trunk/dports/python/py27-lint/Portfile =================================================================== --- trunk/dports/python/py27-lint/Portfile (rev 0) +++ trunk/dports/python/py27-lint/Portfile 2010-12-22 00:21:05 UTC (rev 74568) @@ -0,0 +1,49 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup python27 1.0 + +name py27-lint +version 0.22.0 +categories-append devel +maintainers nomaintainer +description Error (and style) checking for python +long_description \ + Pylint is a tool that checks for errors in python code, and tries to \ + check that a given coding standard is respected by the coders. This is \ + similar but nevertheless different from what pychecker_ provides, \ + especially since pychecker explicitely does not bother with coding \ + style. The default coding style used by pylint is close to `Guido's \ + style guide`_. + +platforms darwin + +homepage http://www.logilab.org/projects/pylint/ +master_sites http://ftp.logilab.org/pub/pylint/ +distname pylint-${version} + +checksums md5 feb2c37a64c8c8ab54081945c8762e95 \ + sha1 e44748f20455709e7e4c0365214f88a469799a9a \ + rmd160 460830e426c28340a63f634451483866dc9f3a3e + +depends_lib port:py27-logilab-common port:py27-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} + file delete ${destroot}${python.pkgd}/logilab/__init__.py +} + +livecheck.url http://ftp.logilab.org/pub/pylint/ +livecheck.type regex +livecheck.regex {pylint-(\d+(?:\.\d+)*)\.tar\.gz} Property changes on: trunk/dports/python/py27-lint/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/python/py27-lint/files/patch-epylint.py.diff =================================================================== --- trunk/dports/python/py27-lint/files/patch-epylint.py.diff (rev 0) +++ trunk/dports/python/py27-lint/files/patch-epylint.py.diff 2010-12-22 00:21:05 UTC (rev 74568) @@ -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 Added: trunk/dports/python/py27-logilab-astng/Portfile =================================================================== --- trunk/dports/python/py27-logilab-astng/Portfile (rev 0) +++ trunk/dports/python/py27-logilab-astng/Portfile 2010-12-22 00:21:05 UTC (rev 74568) @@ -0,0 +1,37 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup python27 1.0 + +name py27-logilab-astng +version 0.21.0 +maintainers nomaintainer +description Python Abstract Syntax Tree New Generation +long_description The aim of this module is to provide a common base representation of python source code for \ + projects such as pychecker, pyreverse, pylint... Well, actually the development of this library \ + is essentially governed by pylint's needs. + +platforms darwin + +homepage http://www.logilab.org/project/logilab-astng +master_sites http://ftp.logilab.org/pub/astng \ + ftp://ftp.logilab.fr/pub/astng +distname logilab-astng-${version} + +livecheck.url http://ftp.logilab.org/pub/astng/ +livecheck.type regex +livecheck.regex {logilab-astng-(\d+(?:\.\d+)*)\.tar\.gz} + +checksums md5 582751f0abbd8a530b610f7f1bdd290a \ + sha1 fbb8cc9a5f65de35122f3c2f9f61ed909e27ca83 \ + rmd160 a8bb10423267ba402b613c44822b48932f364564 + +depends_lib-append port:py27-logilab-common + +post-destroot { + xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} + xinstall -m 644 -W ${worksrcpath} ChangeLog README \ + ${destroot}${prefix}/share/doc/${name} + file delete ${destroot}/${python.prefix}/lib/python2.7/site-packages/logilab/__init__.py +} Property changes on: trunk/dports/python/py27-logilab-astng/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/python/py27-logilab-common/Portfile =================================================================== --- trunk/dports/python/py27-logilab-common/Portfile (rev 0) +++ trunk/dports/python/py27-logilab-common/Portfile 2010-12-22 00:21:05 UTC (rev 74568) @@ -0,0 +1,33 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 +PortGroup python27 1.0 + +name py27-logilab-common +version 0.53.0 +maintainers nomaintainer +description A number of modules used by various projects from Logilab +long_description ${description} + +platforms darwin + +homepage http://www.logilab.org/project/logilab-common +master_sites http://ftp.logilab.org/pub/common \ + ftp://ftp.logilab.fr/pub/common +distname logilab-common-${version} + +checksums md5 ce8056730b3ee8eeda03a6e21c2bf3a9 \ + sha1 5994b48c36a1c55abfd484a98cc340634fce9e4c \ + rmd160 bbdfcd4e9046435b84403f746040d325a2722db0 + +post-destroot { + xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} + xinstall -m 644 -W ${worksrcpath} ChangeLog README \ + ${destroot}${prefix}/share/doc/${name} +} + +livecheck.type regex +livecheck.url http://ftp.logilab.org/pub/common/ +livecheck.regex {logilab-common-(\d+(?:\.\d+)*)\.tar\.gz} + Property changes on: trunk/dports/python/py27-logilab-common/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native
participants (1)
-
ricci@macports.org