# -*- 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 54068 2009-07-20 00:45:27Z dh@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-logilab-common
version             0.42.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.check     regex
livecheck.url       http://ftp.logilab.org/pub/common/
livecheck.regex     {logilab-common-(\d+(?:\.\d+)*)\.tar\.gz}

checksums           md5     836b1f9f928a98a85c5d3f4965e75480 \
                    sha1    e4393f749da1cb3ac55212e37557ece2b08c0bc8 \
                    rmd160  d2e4acdde23733b63fa53ec21e636a2c8510f7fe

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
