[101343] trunk/dports/python/py-pylint

blair at macports.org blair at macports.org
Tue Jan 8 18:35:31 PST 2013


Revision: 101343
          https://trac.macports.org/changeset/101343
Author:   blair at macports.org
Date:     2013-01-08 18:35:31 -0800 (Tue, 08 Jan 2013)
Log Message:
-----------
py-pylint: add support for 'port select'.

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

Added Paths:
-----------
    trunk/dports/python/py-pylint/files/
    trunk/dports/python/py-pylint/files/pylint24
    trunk/dports/python/py-pylint/files/pylint25
    trunk/dports/python/py-pylint/files/pylint26
    trunk/dports/python/py-pylint/files/pylint27

Modified: trunk/dports/python/py-pylint/Portfile
===================================================================
--- trunk/dports/python/py-pylint/Portfile	2013-01-09 02:26:13 UTC (rev 101342)
+++ trunk/dports/python/py-pylint/Portfile	2013-01-09 02:35:31 UTC (rev 101343)
@@ -3,13 +3,15 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
+PortGroup           select 1.0
 
 name                py-pylint
 if {$subport != "py24-pylint"} {
     version         0.26.0
+    revision        1
 } else {
     version         0.21.1
-    revision        2
+    revision        3
 }
 categories-append   devel
 
@@ -47,6 +49,7 @@
 if {$subport != $name} {
     depends_lib     port:py${python.version}-logilab-common \
                     port:py${python.version}-logilab-astng
+    depends_run     port:pylint_select
 
     if {$subport != "py24-pylint"} {
         depends_lib-append  port:py${python.version}-unittest2
@@ -60,6 +63,16 @@
             ${destroot}${prefix}/share/doc/${subport}
         file delete ${destroot}${python.pkgd}/logilab/__init__.py
     }
+
+    select.group    pylint
+    select.file     ${filespath}/pylint${python.version}
+
+    notes "
+To make the Python ${python.branch} version of pylint the one that is run\
+when you execute the commands without a version suffix, e.g. 'pylint', run:
+
+port select --set ${select.group} [file tail ${select.file}]
+"
 } else {
     livecheck.url   http://ftp.logilab.org/pub/pylint/
     livecheck.type  regex

Added: trunk/dports/python/py-pylint/files/pylint24
===================================================================
--- trunk/dports/python/py-pylint/files/pylint24	                        (rev 0)
+++ trunk/dports/python/py-pylint/files/pylint24	2013-01-09 02:35:31 UTC (rev 101343)
@@ -0,0 +1,5 @@
+bin/epylint-2.4
+bin/pylint-2.4
+bin/pylint-gui-2.4
+bin/pyreverse-2.4
+bin/symilar-2.4

Added: trunk/dports/python/py-pylint/files/pylint25
===================================================================
--- trunk/dports/python/py-pylint/files/pylint25	                        (rev 0)
+++ trunk/dports/python/py-pylint/files/pylint25	2013-01-09 02:35:31 UTC (rev 101343)
@@ -0,0 +1,5 @@
+bin/epylint-2.5
+bin/pylint-2.5
+bin/pylint-gui-2.5
+bin/pyreverse-2.5
+bin/symilar-2.5

Added: trunk/dports/python/py-pylint/files/pylint26
===================================================================
--- trunk/dports/python/py-pylint/files/pylint26	                        (rev 0)
+++ trunk/dports/python/py-pylint/files/pylint26	2013-01-09 02:35:31 UTC (rev 101343)
@@ -0,0 +1,5 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/epylint
+${frameworks_dir}/Python.framework/Versions/2.6/bin/pylint
+${frameworks_dir}/Python.framework/Versions/2.6/bin/pylint-gui
+${frameworks_dir}/Python.framework/Versions/2.6/bin/pyreverse
+${frameworks_dir}/Python.framework/Versions/2.6/bin/symilar

Added: trunk/dports/python/py-pylint/files/pylint27
===================================================================
--- trunk/dports/python/py-pylint/files/pylint27	                        (rev 0)
+++ trunk/dports/python/py-pylint/files/pylint27	2013-01-09 02:35:31 UTC (rev 101343)
@@ -0,0 +1,5 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/epylint
+${frameworks_dir}/Python.framework/Versions/2.7/bin/pylint
+${frameworks_dir}/Python.framework/Versions/2.7/bin/pylint-gui
+${frameworks_dir}/Python.framework/Versions/2.7/bin/pyreverse
+${frameworks_dir}/Python.framework/Versions/2.7/bin/symilar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130108/f2529467/attachment.html>


More information about the macports-changes mailing list