# -*- 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 67040 2010-04-27 20:16:15Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-blist
version             1.1.1
revision            2
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     bff8e5bde6eae3b219969c388676f19d \
                    sha1    89cd4bfd683ce9d60f11bc6cdfe9bdf40d6d6b9e \
                    rmd160  5ff8ecb93cea176d7f5b4df950b50d8889eedc87

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}"
