# -*- 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 77158 2011-03-21 14:24:14Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-blist
version             1.3.4
revision            0
categories          python
platforms           darwin

maintainers         stromnov openmaintainer
description         a list-like type with better asymptotic performance and similar performance on small lists
long_description    ${description}
homepage            http://stutzbachenterprises.com/
master_sites        http://pypi.python.org/packages/source/b/blist/
distname            blist-${version}

checksums           md5     02e8bf33cffec9cc802f4567f39ffa6f \
                    sha1    a8a7401c6c3f12f27a79757b4d5f7ebc996aeb76 \
                    rmd160  1409f817660b9c9b9bf814c8b629118b47542b0d

depends_lib-append  port:py26-distribute

post-patch {
    file delete -force ${worksrcpath}/blist.egg-info
}

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} README.rst LICENSE ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "blist-(\\d+(?:\\.\\d+)*)${extract.suffix}"
