[92176] trunk/dports/python

singingwolfboy at macports.org singingwolfboy at macports.org
Fri Apr 20 20:29:48 PDT 2012


Revision: 92176
          https://trac.macports.org/changeset/92176
Author:   singingwolfboy at macports.org
Date:     2012-04-20 20:29:44 -0700 (Fri, 20 Apr 2012)
Log Message:
-----------
py-pep8: updated to 1.0.1, added pep8_select port

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

Added Paths:
-----------
    trunk/dports/python/pep8_select/
    trunk/dports/python/pep8_select/Portfile
    trunk/dports/python/pep8_select/files/
    trunk/dports/python/pep8_select/files/base
    trunk/dports/python/pep8_select/files/none
    trunk/dports/python/py-pep8/files/
    trunk/dports/python/py-pep8/files/pep824
    trunk/dports/python/py-pep8/files/pep825
    trunk/dports/python/py-pep8/files/pep826
    trunk/dports/python/py-pep8/files/pep827
    trunk/dports/python/py-pep8/files/pep831
    trunk/dports/python/py-pep8/files/pep832

Added: trunk/dports/python/pep8_select/Portfile
===================================================================
--- trunk/dports/python/pep8_select/Portfile	                        (rev 0)
+++ trunk/dports/python/pep8_select/Portfile	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1,32 @@
+# -*- 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           select 1.0
+
+name                pep8_select
+version             0.1
+revision            0
+categories          python
+license             BSD
+maintainers         nomaintainer
+description         common files for selecting default pep8 version
+long_description \
+   This port installs files that allow 'port select' to be used to \
+   create links to the preferred default version of pep8.
+
+platforms           darwin
+supported_archs     noarch
+
+homepage            http://www.macports.org/
+
+distfiles
+
+use_configure       no
+build               {}
+destroot {
+    select::install pep8 ${filespath}/base
+    select::install pep8 ${filespath}/none
+}
+
+livecheck.type      none

Added: trunk/dports/python/pep8_select/files/base
===================================================================
--- trunk/dports/python/pep8_select/files/base	                        (rev 0)
+++ trunk/dports/python/pep8_select/files/base	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8

Added: trunk/dports/python/pep8_select/files/none
===================================================================
--- trunk/dports/python/pep8_select/files/none	                        (rev 0)
+++ trunk/dports/python/pep8_select/files/none	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+-

Modified: trunk/dports/python/py-pep8/Portfile
===================================================================
--- trunk/dports/python/py-pep8/Portfile	2012-04-21 03:03:57 UTC (rev 92175)
+++ trunk/dports/python/py-pep8/Portfile	2012-04-21 03:29:44 UTC (rev 92176)
@@ -2,10 +2,11 @@
 
 PortSystem          1.0
 PortGroup           python 1.0
+PortGroup           select 1.0
 
 name                py-pep8
-set real_name       pep8
-version             0.6.1
+set realname       pep8
+version             1.0.1
 python.versions     24 25 26 27 31 32
 categories-append   devel
 platforms           darwin
@@ -16,13 +17,23 @@
     pep8 is a tool to check your Python code against some of the style conventions \
     in PEP 8 (http://www.python.org/dev/peps/pep-0008/)
 
-homepage            http://pypi.python.org/pypi/${real_name}
-master_sites        http://pypi.python.org/packages/source/p/${real_name}
-distname            ${real_name}-${version}
+homepage            http://pypi.python.org/pypi/${realname}
+master_sites        http://pypi.python.org/packages/source/p/${realname}
+distname            ${realname}-${version}
 
-checksums           rmd160  9234bd7776ef09cc06c6f33350f1752d49ec2135 \
-                    sha256  c0654b683bd0c20987e3e767bb0241daf014d854cb89ec84fbed623e349faeec
+checksums           rmd160  789ceed5cd0241dc5661a6e7b3b0f2a656183547 \
+                    sha256  67ce5e323d3366cd76b41e794ccc5fa580ed83267332f8c06c36ffe6ad20185d
 
 if {${subport} != ${name}} {
-    depends_build-append port:py${python.version}-distribute
+    depends_build-append  port:py${python.version}-distribute
+    depends_run           port:pep8_select
+    select.group          ${realname}
+    select.file           ${filespath}/${realname}${python.version}
+    notes "
+To make the Python ${python.branch} version of pep8 the one that is run\
+when you execute the commands without a version suffix, e.g. 'pep8', run:
+
+port select --set ${select.group} [file tail ${select.file}]
+"
+
 }

Added: trunk/dports/python/py-pep8/files/pep824
===================================================================
--- trunk/dports/python/py-pep8/files/pep824	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep824	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-2.4

Added: trunk/dports/python/py-pep8/files/pep825
===================================================================
--- trunk/dports/python/py-pep8/files/pep825	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep825	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-2.5

Added: trunk/dports/python/py-pep8/files/pep826
===================================================================
--- trunk/dports/python/py-pep8/files/pep826	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep826	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-2.6

Added: trunk/dports/python/py-pep8/files/pep827
===================================================================
--- trunk/dports/python/py-pep8/files/pep827	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep827	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-2.7

Added: trunk/dports/python/py-pep8/files/pep831
===================================================================
--- trunk/dports/python/py-pep8/files/pep831	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep831	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-3.1

Added: trunk/dports/python/py-pep8/files/pep832
===================================================================
--- trunk/dports/python/py-pep8/files/pep832	                        (rev 0)
+++ trunk/dports/python/py-pep8/files/pep832	2012-04-21 03:29:44 UTC (rev 92176)
@@ -0,0 +1 @@
+bin/pep8-3.2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120420/b1b1707e/attachment-0001.html>


More information about the macports-changes mailing list