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

name                py27-logilab-astng
version             0.22.0
platforms           darwin

maintainers         stromnov openmaintainer

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     c7313019626369d32cdc08556f5a87bd \
                    sha1    79f97dc4fbfdc90e08936853a65d06dc0a6bba5e \
                    rmd160  b9ff016ed7347df00cca66d5ae20d4d20c8a5e81

depends_lib-append  port:py27-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}/${python.prefix}/lib/python2.7/site-packages/logilab/__init__.py
}

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