[96724] trunk/dports/python

blair at macports.org blair at macports.org
Fri Aug 17 15:16:37 PDT 2012


Revision: 96724
          https://trac.macports.org/changeset/96724
Author:   blair at macports.org
Date:     2012-08-17 15:16:37 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
py-pylint: new unified port for pylint; based off py27-lint.

Has support for py24-pylint which requires an older version of pylint.

Modified Paths:
--------------
    trunk/dports/python/py-pylint/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pylint/

Modified: trunk/dports/python/py-pylint/Portfile
===================================================================
--- trunk/dports/python/py27-lint/Portfile	2012-08-17 21:27:39 UTC (rev 96714)
+++ trunk/dports/python/py-pylint/Portfile	2012-08-17 22:16:37 UTC (rev 96724)
@@ -2,10 +2,15 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python27 1.0
+PortGroup           python 1.0
 
-name                py27-lint
-version             0.25.2
+name                py-pylint
+if {$subport != "py24-pylint"} {
+    version         0.25.2
+} else {
+    version         0.21.1
+    revision        2
+}
 set dotless_branch  [join [lrange [split ${python.branch} .] 0 1] ""]
 categories-append   devel
 
@@ -28,22 +33,32 @@
 master_sites        http://ftp.logilab.org/pub/pylint/
 distname            pylint-${version}
 
-checksums           md5     de940692e4fc9a71fcd9e1f13066e820 \
+if {$subport != "py24-pylint"} {
+    checksums       md5     de940692e4fc9a71fcd9e1f13066e820 \
                     sha1    52b1a671bacc115a953b1e0d423ecbaf9064ce2e \
                     rmd160  2f40b7efa44617b994ae1057e0351577dddf400c
+} else {
+    checksums       md5     70f82198cde208b9118e81a43f3c7d80 \
+                    sha1    e71ba47c1a54839a44f618d7cce5bd716b1a4987 \
+                    rmd160  04ec7d4c9b89dd9ff8f41bc453e20c5648b374ea
+}
 
+python.versions 24 25 26 27
+
 depends_lib         port:py${dotless_branch}-logilab-common \
                     port:py${dotless_branch}-logilab-astng
 
-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
+if {$subport != $name} {
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
+            ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} ChangeLog README \
+            ${destroot}${prefix}/share/doc/${subport}
+        file delete ${destroot}${python.pkgd}/logilab/__init__.py
+    }
+} else {
+    livecheck.url   http://ftp.logilab.org/pub/pylint/
+    livecheck.type  regex
+    livecheck.regex {pylint-(\d+(?:\.\d+)*)\.tar\.gz}
 }
-
-livecheck.url       http://ftp.logilab.org/pub/pylint/
-livecheck.type      regex
-livecheck.regex     {pylint-(\d+(?:\.\d+)*)\.tar\.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/d5e126e7/attachment.html>


More information about the macports-changes mailing list