# -*- 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 107466 2013-06-30 08:33:42Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-autopep8
set realname        autopep8
version             0.9.1
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  e28c8fc6a87075fed025935f436be17019013660 \
                    sha256  c387af9a0b95857a94671beda0e1821a1514cb48dc30f8e7b1483e74c1b97140

python.versions     26 27 31 32 33

if {${subport} != ${name}} {
    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}]
"

}
