# $Id: Portfile 92176 2012-04-21 03:29:44Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-pep8
set realname       pep8
version             1.0.1
python.versions     24 25 26 27 31 32
categories-append   devel
platforms           darwin
license             MIT
maintainers         singingwolfboy openmaintainer
description         Python style guide checker
long_description  \
    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/${realname}
master_sites        http://pypi.python.org/packages/source/p/${realname}
distname            ${realname}-${version}

checksums           rmd160  789ceed5cd0241dc5661a6e7b3b0f2a656183547 \
                    sha256  67ce5e323d3366cd76b41e794ccc5fa580ed83267332f8c06c36ffe6ad20185d

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

}
