# -*- 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 86534 2011-10-27 17:32:06Z eborisch@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-logilab-astng
version             0.21.1
platforms           darwin

maintainers         nomaintainer

description         Python Abstract Syntax Tree New Generation
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://www.logilab.org/project/logilab-astng
master_sites        http://ftp.logilab.org/pub/astng \
                    ftp://ftp.logilab.fr/pub/astng

license             LGPL-2.1+

distname            logilab-astng-${version}

checksums           md5     064a1cb970c283cf18e05a990db48576 \
                    sha1    b5c8324e46ab4634f046012a1052c4ad73b1c137 \
                    rmd160  63bb8d7f956d046661fe926415ae48e0f61b45b3

depends_lib-append  port:py25-logilab-common

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} ChangeLog README \
        ${destroot}${prefix}/share/doc/${name}
    file delete ${destroot}${prefix}/lib/python2.5/site-packages/logilab/__init__.py
}

livecheck.url       http://ftp.logilab.org/pub/astng/
livecheck.type      regex
livecheck.regex     {logilab-astng-(\d+(?:\.\d+)*)\.tar\.gz}
