# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-pep8
version             1.7.1
revision            0
categories-append   devel
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

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 \
                    (https://www.python.org/dev/peps/pep-0008/)

homepage            https://pypi.python.org/pypi/${python.rootname}/

master_sites        pypi:p/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           md5     603821d06db945c71d811b5a8d78423c \
                    rmd160  abf24374d1dfe2f028d5122d54d8dc9fc9a22bba \
                    sha256  fe249b52e20498e59e0b5c5256aa52ee99fc295b26ec9eaa85776ffdb9fe6374 \
                    size    80334

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-setuptools
    depends_run-append      port:${python.rootname}_select
    select.group            ${python.rootname}
    select.file             ${filespath}/${python.rootname}-${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}]
"

    livecheck.type  none
}
