# -*- 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 92632 2012-05-02 21:29:39Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-blist
version             1.3.4
revision            3
categories-append   devel
license             BSD
platforms           darwin

maintainers         stromnov phw openmaintainer

description         A list-like type with better asymptotic performance.
long_description    A list-like type with better asymptotic performance \
                    and similar performance on small lists.

homepage            http://stutzbachenterprises.com/
master_sites        http://pypi.python.org/packages/source/b/blist/
distname            blist-${version}

checksums           rmd160  1409f817660b9c9b9bf814c8b629118b47542b0d \
                    sha256  502e4fc7ebac04d5699f39c19ff2687ec32698d01252edafd28997db2d6d0a01

python.versions     26 27 31 32
python.default_version 27

if {$subport != $name} {

    depends_lib-append  port:py${python.version}-distribute

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

    build.args-append -f

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

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