# -*- 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 91080 2012-03-23 16:36:29Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-logilab-common
version             0.56.0
license             LGPL-2.1+
maintainers         dh stromnov openmaintainer
description         A number of modules used by various projects from Logilab
long_description    ${description}

platforms           darwin

homepage            http://www.logilab.org/project/logilab-common
master_sites        http://download.logilab.org/pub/common/ \
                    ftp://ftp.logilab.fr/pub/common
distname            logilab-common-${version}

checksums           md5     9737aa6b05758779df201113a9aa592b \
                    sha1    d950f4fde449e4709a7d333ee8f8b614b70ae676 \
                    rmd160  5d29aaaf00a2958da099a847ac9a0c8d3d83ea9e

python.versions 24 25 26 27

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

        move ${destroot}${python.prefix}/bin/pytest ${destroot}${python.prefix}/bin/pytest-${python.branch}
    }
    
    livecheck.type  none
} else {
    livecheck.type      regex
    livecheck.url       http://ftp.logilab.org/pub/common/
    livecheck.regex     {logilab-common-(\d+(?:\.\d+)*)\.tar\.gz}
}
