# -*- 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: Portfile 115461 2014-01-02 19:18:51Z larryv@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-autopep8
set realname        autopep8
version             0.9.7
categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         gmail.com:patrik.hartlen openmaintainer

description         A tool that automatically formats Python code to \
                    conform to the PEP 8 style guide
long_description    autopep8 formats Python code based on the output \
                    of the pep8_ utility.

homepage            http://pypi.python.org/pypi/${realname}

master_sites        http://pypi.python.org/packages/source/a/${realname}
distname            ${realname}-${version}
checksums           rmd160  5e0295fe7eb489041892822ba48c88043a3f60b4 \
                    sha256  9071ef91a9cd5fdacca64d92fbb82feaa8552d2f01ceed85fb6f8a914f742038

python.versions     26 27 31 32 33

if {${name} ne ${subport}} {
    depends_build           port:py${python.version}-setuptools
    depends_run-append      port:${realname}_select \
                            port:py${python.version}-pep8
    select.group            ${realname}
    select.file             ${filespath}/${realname}${python.version}
    notes "
To make the Python ${python.branch} version of autopep8 the one that is run\
when you execute the commands without a version suffix, e.g. 'autopep8', run:

    port select --set ${select.group} [file tail ${select.file}]
"

}
