# -*- 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 119961 2014-05-12 09:43:39Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-astroid
version             1.1.1
revision            0
categories-append   devel
platforms           darwin
license             LGPL-2.1+
supported_archs     noarch

python.versions     26 27 32 33 34

maintainers         stromnov openmaintainer

description         Rebuild a new abstract syntax tree from Python's ast.

long_description    The aim of this module is to provide a common \
                    base representation of python source code for \
                    projects such as pychecker, pyreverse, pylint... \
                    Well, actually the development of this library is \
                    essentially governed by pylint's needs.

homepage            http://bitbucket.org/logilab/astroid/
master_sites        https://pypi.python.org/packages/source/a/astroid/

distname            astroid-${version}

checksums           rmd160  5539d01d2e3ad8c8ffea176b04443a4891ea0cf6 \
                    sha256  780735cb451f5ae982bfa8a6b80866305e3eb9cbdd68e58d79afd94feb00e1f4

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools

    depends_lib-append  port:py${python.version}-logilab-common

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} ChangeLog README \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {astroid-(\d+(?:\.\d+)*)\.[tz]}
}
