Ticket #34149: pep.patch

File pep.patch, 4.8 KB (added by robsonpeixoto@…, 12 years ago)

py-pep8 @1.0.1 with select

  • new file dports/python/pep8_select/Portfile

    diff --git a/dports/python/pep8_select/Portfile b/dports/python/pep8_select/Portfile
    new file mode 100644
    index 0000000..63f38bb
    - +  
     1# -*- 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
     2# $Id$
     3
     4PortSystem          1.0
     5PortGroup           select 1.0
     6
     7name                pep8_select
     8version             0.1
     9revision            0
     10categories          python
     11license             BSD
     12maintainers         nomaintainer
     13description         common files for selecting default pep8 version
     14long_description \
     15   This port installs files that allow 'port select' to be used to \
     16   create links to the preferred default version of pep8.
     17
     18platforms           darwin
     19supported_archs     noarch
     20
     21homepage            http://www.macports.org/
     22
     23distfiles
     24
     25use_configure       no
     26build               {}
     27destroot {
     28    select::install pep8 ${filespath}/base
     29    select::install pep8 ${filespath}/none
     30}
     31
     32livecheck.type      none
  • new file dports/python/pep8_select/files/base

    diff --git a/dports/python/pep8_select/files/base b/dports/python/pep8_select/files/base
    new file mode 100644
    index 0000000..bd669cf
    - +  
     1bin/pep8
  • new file dports/python/pep8_select/files/none

    diff --git a/dports/python/pep8_select/files/none b/dports/python/pep8_select/files/none
    new file mode 100644
    index 0000000..39cdd0d
    - +  
     1-
  • dports/python/py-pep8/Portfile

    diff --git a/dports/python/py-pep8/Portfile b/dports/python/py-pep8/Portfile
    index 410d58d..1e010dc 100644
    a b  
     1# -*- 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
    12# $Id$
    23
    34PortSystem          1.0
    45PortGroup           python 1.0
     6PortGroup           select 1.0
    57
    68name                py-pep8
    7 set real_name       pep8
    8 version             0.6.1
     9set realname        pep8
     10version             1.0.1
    911python.versions     24 25 26 27 31 32
    1012categories-append   devel
    1113platforms           darwin
    long_description \ 
    1618    pep8 is a tool to check your Python code against some of the style conventions \
    1719    in PEP 8 (http://www.python.org/dev/peps/pep-0008/)
    1820
    19 homepage            http://pypi.python.org/pypi/${real_name}
    20 master_sites        http://pypi.python.org/packages/source/p/${real_name}
    21 distname            ${real_name}-${version}
     21homepage            http://pypi.python.org/pypi/${realname}
     22master_sites        http://pypi.python.org/packages/source/p/${realname}
     23distname            ${realname}-${version}
    2224
    23 checksums           rmd160  9234bd7776ef09cc06c6f33350f1752d49ec2135 \
    24                     sha256  c0654b683bd0c20987e3e767bb0241daf014d854cb89ec84fbed623e349faeec
     25
     26checksums           rmd160  789ceed5cd0241dc5661a6e7b3b0f2a656183547 \
     27                    sha256  67ce5e323d3366cd76b41e794ccc5fa580ed83267332f8c06c36ffe6ad20185d
    2528
    2629if {${subport} != ${name}} {
    27     depends_build-append port:py${python.version}-distribute
     30    depends_build-append  port:py${python.version}-distribute
     31    depends_run           port:pep8_select
     32    select.group          ${realname}
     33    select.file           ${filespath}/${realname}${python.version}
     34    notes "
     35To make the Python ${python.branch} version of pep8 the one that is run\
     36when you execute the commands without a version suffix, e.g. 'pep8', run:
     37
     38port select --set ${select.group} [file tail ${select.file}]
     39"
     40
    2841}
  • new file dports/python/py-pep8/files/pep824

    diff --git a/dports/python/py-pep8/files/pep824 b/dports/python/py-pep8/files/pep824
    new file mode 100644
    index 0000000..4d12464
    - +  
     1bin/pep8-2.4
  • new file dports/python/py-pep8/files/pep825

    diff --git a/dports/python/py-pep8/files/pep825 b/dports/python/py-pep8/files/pep825
    new file mode 100644
    index 0000000..b994a10
    - +  
     1bin/pep8-2.5
  • new file dports/python/py-pep8/files/pep826

    diff --git a/dports/python/py-pep8/files/pep826 b/dports/python/py-pep8/files/pep826
    new file mode 100644
    index 0000000..4a7ecf0
    - +  
     1bin/pep8-2.6
  • new file dports/python/py-pep8/files/pep827

    diff --git a/dports/python/py-pep8/files/pep827 b/dports/python/py-pep8/files/pep827
    new file mode 100644
    index 0000000..8c815ea
    - +  
     1bin/pep8-2.7
  • new file dports/python/py-pep8/files/pep831

    diff --git a/dports/python/py-pep8/files/pep831 b/dports/python/py-pep8/files/pep831
    new file mode 100644
    index 0000000..c949703
    - +  
     1bin/pep8-3.1
  • new file dports/python/py-pep8/files/pep832

    diff --git a/dports/python/py-pep8/files/pep832 b/dports/python/py-pep8/files/pep832
    new file mode 100644
    index 0000000..e52b560
    - +  
     1bin/pep8-3.2