# -*- 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 54826 2009-08-02 20:24:42Z dh@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-logilab-astng
version             0.19.0
categories-append   devel
maintainers         dh 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 essentialy governed by pylint's needs. \
    \
    It extends class defined in the compiler.ast module with some additional methods and \
    attributes. Instance attributes are added by a builder object, which can either generate \
    extended ast (let's call them astng) by visiting an existant ast tree or by inspecting \
    living object. Methods are added by monkey patching ast classes.

platforms           darwin

homepage            http://www.logilab.org/project/logilab-astng
master_sites        ftp://ftp.logilab.org/pub/astng
distname            logilab-astng-${version}

livecheck.url       ${homepage}
livecheck.check     regex
livecheck.regex     "latest published version:.*<a.*?>(\\d+(?:\\.\\d+)*)</a>"

checksums           md5     9478141bd45c1a1e72621797c94f18d3 \
                    sha1    87fe682ec98599c0088f228ba94cb50a7ed99466 \
                    rmd160  c9b4a2eabcd28e959315af33215d1620b405c475

depends_lib-append  port:py-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}

    # this file is also installed by py-logilab-common
    file delete ${destroot}${python.pkgd}/logilab/__init__.py
}
