# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     26 27 31 32 33

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

if {$subport != $name} {
    depends_build-append \
                        port:py${python.version}-setuptools

    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      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "blist-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
