# -*- 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 77445 2011-03-30 22:16:36Z dh@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-logilab-common
version             0.55.1
maintainers         dh 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://ftp.logilab.org/pub/common \
                    ftp://ftp.logilab.fr/pub/common
distname            logilab-common-${version}

checksums           md5     c40f6380dd10b867382bc76713b6f6ce \
                    sha1    50fb6bfed720482da84cb464983cf48133a20179 \
                    rmd160  f2aa83fa0014a82bde15081d5873f43bd41afe7b

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

    # alter the install name of pytest to include version name
    move ${destroot}${prefix}/bin/pytest ${destroot}${prefix}/bin/pytest-2.4
}

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