# -*- 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 63822 2010-02-16 05:59:24Z dh@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-logilab-common
version             0.47.0
maintainers         stechert 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        ftp://ftp.logilab.fr/pub/common/
distname            logilab-common-${version}

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

checksums           md5     a732c1aa14addc3ee49a95832eca27c4 \
                    sha1    5105cda0f0dd8419f89edce9ea0d8fddb38e482b \
                    rmd160  4d1b6dcd0cb43de4f1ca48b01b97336ffde9c26d

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/pytest2.5
}

# Shared-file warning; the following file is installed by this module as
# well as (at least) py-lint, but it is the basic, auto-generated, empty-
# other-than-the-docstring file:
#    ${prefix}/lib/python2.3/site-packages/logilab/__init__.py
