# -*- 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 91627 2012-04-07 01:50:15Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-pyflakes
version             0.5.0
revision            0
categories-append   devel
license             MIT
platforms           darwin
supported_archs     noarch

maintainers         stromnov openmaintainer

description         Passive checker of Python programs.
long_description    Pyflakes is program to analyze Python programs and \
                    detect various errors. It works by parsing the source \
                    file, not importing it, so it is safe to use on modules \
                    with side effects. It's also much faster.

homepage            https://launchpad.net/pyflakes
master_sites        http://pypi.python.org/packages/source/p/pyflakes/

checksums           md5     568dab27c42e5822787aa8a603898672 \
                    sha1    ce3688e26297e518c8b922209c3bece33d512352 \
                    rmd160  f64abbfc19fc5dcd7ae94f4574c46c311d94dcf6

distname            pyflakes-${version}

python.versions     24 25 26 27

if {$subport != $name} {
    depends_run         port:pyflakes_select

    select.group        pyflakes
    select.file         ${filespath}/py${python.version}-pyflakes

    notes "
To make the Python ${python.branch} version of py-pyflakes the one that is run\
when you execute the commands without a version suffix, e.g. 'pyflakes', run:

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

livecheck.type      regex
livecheck.url       http://pypi.python.org/pypi/pyflakes/
livecheck.regex     "pyflakes-(\\d+(?:\\.\\d+)*)${extract.suffix}"
